Submission #107968
Source Code Expand
#encoding: utf-8 def synop y = gets.chomp.to_f x = y/1000 if x <= 0.1 return 0.to_s elsif x <= 5 && 0.1 <= x return "0"+(10*x).to_s elsif 10 < x && 6 <= x return "0"+(x+50).to_s elsif 10 <= x && 30 >= x return (x+50).to_s elsif 35<=x && x <= 70 return ((x-30)/5+80).to_s elsif 70<=x return 89.to_s end end print synop
Submission Info
Submission Time | |
---|---|
Task | A - 積雪深差 |
User | matsu_no_ki |
Language | Ruby (1.9.3) |
Score | 0 |
Code Size | 394 Byte |
Status | WA |
Exec Time | 49 ms |
Memory | 3116 KB |
Judge Result
Set Name | all | ||
---|---|---|---|
Score / Max Score | 0 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
all | 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 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | WA | 45 ms | 2908 KB |
00_sample_02.txt | WA | 43 ms | 2980 KB |
00_sample_03.txt | WA | 45 ms | 3032 KB |
test_01.txt | WA | 41 ms | 2972 KB |
test_02.txt | WA | 49 ms | 2980 KB |
test_03.txt | WA | 45 ms | 3116 KB |
test_04.txt | WA | 40 ms | 3032 KB |
test_05.txt | WA | 42 ms | 3100 KB |
test_06.txt | WA | 40 ms | 3036 KB |
test_07.txt | WA | 42 ms | 3108 KB |
test_08.txt | WA | 41 ms | 3016 KB |
test_09.txt | WA | 43 ms | 3028 KB |
test_10.txt | WA | 42 ms | 2936 KB |
test_11.txt | WA | 42 ms | 3032 KB |
test_12.txt | WA | 42 ms | 2932 KB |
test_13.txt | WA | 41 ms | 3100 KB |
test_14.txt | WA | 44 ms | 2932 KB |
test_15.txt | WA | 40 ms | 3036 KB |
test_16.txt | WA | 41 ms | 3032 KB |
test_17.txt | WA | 42 ms | 3032 KB |