Submission #308184
Source Code Expand
open Format open Scanf let input = scanf "%d" (fun x -> x) let itos = string_of_int let (|>) x f = f x let r = match input with | _ when input < 100 -> "00" | _ when 100 <= input && input < 1000 -> let x = input / 100 in "0" ^ (itos x) | _ when 1000 <= input && input < 5000 -> let x = input / 100 in itos x | _ when 6000 <= input && input < 30000 -> let x = input / 1000 in itos (x + 50) | _ when 35000 <= input && input < 70000 -> let x = input / 1000 in (x - 30) / 5 + 80 |> itos | _ -> "89" let _ = print_endline r
Submission Info
Submission Time | |
---|---|
Task | A - 積雪深差 |
User | no_maddo |
Language | OCaml (3.12.1) |
Score | 0 |
Code Size | 598 Byte |
Status | WA |
Exec Time | 28 ms |
Memory | 1140 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 | 28 ms | 1056 KB |
00_sample_02.txt | WA | 27 ms | 1140 KB |
00_sample_03.txt | WA | 27 ms | 1096 KB |
test_01.txt | WA | 28 ms | 1028 KB |
test_02.txt | WA | 28 ms | 1060 KB |
test_03.txt | WA | 27 ms | 1060 KB |
test_04.txt | WA | 27 ms | 1060 KB |
test_05.txt | WA | 27 ms | 1052 KB |
test_06.txt | WA | 27 ms | 1140 KB |
test_07.txt | WA | 27 ms | 1048 KB |
test_08.txt | WA | 27 ms | 1060 KB |
test_09.txt | WA | 28 ms | 1060 KB |
test_10.txt | WA | 27 ms | 1056 KB |
test_11.txt | WA | 28 ms | 1056 KB |
test_12.txt | WA | 28 ms | 1052 KB |
test_13.txt | WA | 26 ms | 1028 KB |
test_14.txt | WA | 26 ms | 1024 KB |
test_15.txt | WA | 28 ms | 1012 KB |
test_16.txt | WA | 26 ms | 1096 KB |
test_17.txt | WA | 28 ms | 1052 KB |