結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2020-08-02 17:05:50 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 2,000 ms |
| コード長 | 290 bytes |
| コンパイル時間 | 136 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-18 21:14:30 |
| 合計ジャッジ時間 | 1,478 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
def judge(a):
if len(a) > 1 and a[0] == "0": return False
for c in a:
if ord("0") <= ord(c) <= ord("9"): pass
else: return False
if int(a) > 12345: return False
return True
a = input()
b = input()
if judge(a) and judge(b): print("OK")
else: print("NG")
toshiro_yanagi