結果
問題 | No.446 ゆきこーだーの雨と雪 (1) |
ユーザー |
![]() |
提出日時 | 2024-07-13 16:51:17 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 399 bytes |
コンパイル時間 | 396 ms |
コンパイル使用メモリ | 82,728 KB |
実行使用メモリ | 53,064 KB |
最終ジャッジ日時 | 2024-07-13 16:51:21 |
合計ジャッジ時間 | 2,534 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
ソースコード
def f(s): if len(s) >= 2 and s[0] == "0": print("NG") exit() def g(s): for c in s: if 0 <= ord(c) - ord("a") <= 25: print("NG") exit() if 0 <= ord(c) - ord("A") <= 25: print("NG") exit() A = input() B = input() f(A) f(B) g(A) g(B) print("OK") if int(A) <= 12345 and int(B) <= 12345 else print("NG")