結果

問題 No.446 ゆきこーだーの雨と雪 (1)
コンテスト
ユーザー n_knuu
提出日時 2017-06-22 04:03:14
言語 Nim
(2.2.6)
コンパイル:
nim --nimcache=~ --hints:off -o:a.out -d:release cpp _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 208 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,197 ms
コンパイル使用メモリ 66,968 KB
実行使用メモリ 6,144 KB
最終ジャッジ日時 2026-03-19 17:59:01
合計ジャッジ時間 2,883 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 11 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import strutils, sequtils

let
  A = stdin.readline
  B = stdin.readline

echo(if A.allIt(it.isDigit) and B.allIt(it.isDigit) and (A.len == 1 or A[0] != '0') and (B.len == 1 or B[0] != '0'): "OK" else: "NG")
0