結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| ユーザー |
c-yan
|
| 提出日時 | 2020-09-11 00:52:02 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 35 ms / 2,000 ms |
| コード長 | 296 bytes |
| コンパイル時間 | 90 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-12-24 05:42:50 |
| 合計ジャッジ時間 | 1,470 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
def is_ok(s):
if len(s) > 1 and s[0] == '0':
return False
for c in s:
if c not in '0123456789':
return False
if int(s) > 12345:
return False
return True
A = input()
B = input()
if is_ok(A) and is_ok(B):
print('OK')
else:
print('NG')
c-yan