結果
| 問題 | No.446 ゆきこーだーの雨と雪 (1) |
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2020-08-02 17:05:50 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 96 ms / 2,000 ms |
| コード長 | 290 bytes |
| 記録 | |
| コンパイル時間 | 419 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 36,056 KB |
| 最終ジャッジ日時 | 2026-04-02 12:34:22 |
| 合計ジャッジ時間 | 2,917 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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