結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー toshiro_yanagi
提出日時 2018-06-11 17:45:00
言語 Nim
(2.2.0)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 3,325 ms
コンパイル使用メモリ 65,692 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 13:39:05
合計ジャッジ時間 3,975 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 11 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils
proc echoNG = echo "NG"; quit()

let A, B = stdin.readLine
var flgNG: bool

for AorB in [A, B]:
  if AorB.len != 1 and AorB[0] == '0':
    echoNG()

  for c in AorB:
    if not c.isDigit:
      echoNG()


echo "OK"
0