結果
問題 | No.446 ゆきこーだーの雨と雪 (1) |
ユーザー |
![]() |
提出日時 | 2025-03-13 12:27:37 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 4,454 ms |
コンパイル使用メモリ | 66,040 KB |
実行使用メモリ | 7,324 KB |
最終ジャッジ日時 | 2025-03-13 12:27:44 |
合計ジャッジ時間 | 5,667 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
ソースコード
import sequtils, strutils let a, b = stdin.readLine var ans = "OK" for x in [a, b]: if x.toSeq.anyIt(it in Letters): ans = "NG" break if x != "0" and x[0] == '0': ans = "NG" break let n = x.parseInt if n > 12345 or n < 0: ans = "NG" break echo ans