結果
問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
ユーザー |
![]() |
提出日時 | 2020-04-10 23:16:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 278 bytes |
コンパイル時間 | 314 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-09-16 00:22:58 |
合計ジャッジ時間 | 1,728 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 11 WA * 2 |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() N=[str(i) for i in range(10)] def chk(x): ret=True for xx in x: if xx not in N: ret=False if x[0]=="0" and len(x)>1: ret=False return ret a=chk(input()) b=chk(input()) print("OK" if a and b else "NG")