結果
問題 | No.446 ゆきこーだーの雨と雪 (1) |
ユーザー | natoriusan |
提出日時 | 2023-07-30 11:03:03 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 77 ms / 2,000 ms |
コード長 | 325 bytes |
コンパイル時間 | 8,770 ms |
コンパイル使用メモリ | 188,804 KB |
実行使用メモリ | 32,256 KB |
最終ジャッジ日時 | 2024-04-17 12:24:31 |
合計ジャッジ時間 | 9,773 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 77 ms
32,128 KB |
testcase_01 | AC | 63 ms
30,592 KB |
testcase_02 | AC | 63 ms
32,000 KB |
testcase_03 | AC | 66 ms
30,336 KB |
testcase_04 | AC | 68 ms
32,128 KB |
testcase_05 | AC | 65 ms
32,256 KB |
testcase_06 | AC | 67 ms
30,592 KB |
testcase_07 | AC | 66 ms
30,592 KB |
testcase_08 | AC | 70 ms
30,456 KB |
testcase_09 | AC | 68 ms
30,336 KB |
testcase_10 | AC | 66 ms
32,128 KB |
testcase_11 | AC | 62 ms
31,992 KB |
testcase_12 | AC | 65 ms
30,592 KB |
testcase_13 | AC | 66 ms
30,592 KB |
testcase_14 | AC | 67 ms
30,592 KB |
testcase_15 | AC | 66 ms
30,720 KB |
testcase_16 | AC | 68 ms
30,848 KB |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (310 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
let a = stdin.ReadLine () let b = stdin.ReadLine () let inta, intb = try int a, int b with | _ -> printfn "NG"; exit 0 if 0 <= inta && inta <= 12345 && 0 <= intb && intb <= 12345 && (a.Length = 1 || a.[0] <> '0') && (a.Length = 1 || b.[0] <> '0') then "OK" else "NG" |> printfn "%s"