AtCoder Beginner Contest 001

Submission #4716191

Source codeソースコード

m = gets.to_i

k = m/1000

if k < 0.1
  puts("00")
elsif 0.1 <= k <= 5
  puts("#{format('%02d', k*10)}")
elsif 6 <= k <= 30
  puts("#{k + 50}")
elsif 35 <= k <= 70
  puts("#{(k-30) / 5 + 80}"")
elsif k > 70
  puts ("89")
end

Submission

Task問題 B - 視程の通報
User nameユーザ名 sgy
Created time投稿日時
Language言語 Ruby (2.3.3)
Status状態 RE
Score得点 0
Source lengthソースコード長 238 Byte
File nameファイル名
Exec time実行時間 ms
Memory usageメモリ使用量 -

Compiler messageコンパイルメッセージ

./Main.rb:14: syntax error, unexpected tINTEGER, expecting ')'
puts ("89")
^
./Main.rb:14: unterminated string meets end of file

Test case

Set

Set name Score得点 / Max score Cases
all 0 / 100 00_sample_01.txt,00_sample_02.txt,00_sample_03.txt,test_01.txt,test_02.txt,test_03.txt,test_04.txt,test_05.txt,test_06.txt,test_07.txt,test_08.txt,test_09.txt,test_10.txt,test_11.txt,test_12.txt,test_13.txt,test_14.txt,test_15.txt,test_16.txt,test_17.txt,test_18.txt,test_19.txt,test_20.txt,test_21.txt,test_22.txt,test_23.txt,test_24.txt,test_25.txt,test_26.txt,test_27.txt,test_28.txt,test_29.txt,test_30.txt,test_31.txt,test_32.txt,test_33.txt,test_34.txt,test_35.txt

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
00_sample_01.txt RE
00_sample_02.txt RE
00_sample_03.txt RE
test_01.txt RE
test_02.txt RE
test_03.txt RE
test_04.txt RE
test_05.txt RE
test_06.txt RE
test_07.txt RE
test_08.txt RE
test_09.txt RE
test_10.txt RE
test_11.txt RE
test_12.txt RE
test_13.txt RE
test_14.txt RE
test_15.txt RE
test_16.txt RE
test_17.txt RE
test_18.txt RE
test_19.txt RE
test_20.txt RE
test_21.txt RE
test_22.txt RE
test_23.txt RE
test_24.txt RE
test_25.txt RE
test_26.txt RE
test_27.txt RE
test_28.txt RE
test_29.txt RE
test_30.txt RE
test_31.txt RE
test_32.txt RE
test_33.txt RE
test_34.txt RE
test_35.txt RE