結果
問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
ユーザー |
![]() |
提出日時 | 2019-02-09 20:06:38 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 396 bytes |
コンパイル時間 | 122 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-01 19:16:38 |
合計ジャッジ時間 | 1,313 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 12 WA * 1 |
ソースコード
import math A = input() B = input() A2 = A + "1" B2 = B + "1" if A.isdecimal() and B.isdecimal(): if int(math.log10(int(A2))+1) != len(list(A2)) or int(A) == 0: print("NG") exit() if int(math.log10(int(B2))+1) != len(list(B2)) or int(B) == 0: print("NG") exit() if int(A) <= 12345 and int(B) <= 12345: print("OK") exit() print("NG")