結果
問題 | No.446 ゆきこーだーの雨と雪 (1) |
ユーザー |
![]() |
提出日時 | 2016-11-28 16:28:14 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 440 bytes |
コンパイル時間 | 2,960 ms |
コンパイル使用メモリ | 65,204 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-29 20:39:30 |
合計ジャッジ時間 | 3,616 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 18) Warning: imported and not used: 'sequtils' [UnusedImport]
ソースコード
import strutils, sequtilswhen isMainModule:vara = stdin.readLineb = stdin.readLinefor c in a:if c in 'a'..'z' or c in 'A'..'Z':echo "NG"quit()for c in b:if c in 'a'..'z' or c in 'A'..'Z':echo "NG"quit()if (a.len > 1 and a[0] == '0') or (b.len > 1 and b[0] == '0'):echo "NG"quit()if a.parseInt > 12345 or b.parseInt > 12345:echo "NG"quit()echo "OK"