結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| ユーザー |
_KingdomOfMoray
|
| 提出日時 | 2019-12-24 15:22:57 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 436 bytes |
| コンパイル時間 | 230 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-09-22 03:16:40 |
| 合計ジャッジ時間 | 1,601 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 RE * 2 |
| other | AC * 9 RE * 4 |
ソースコード
a = input()
b = input()
input_list = [a, b]
num_list = list(range(0, 10))
count = 0
for i in range(2):
cur_str = input_list[i]
judge_list = [int(c) in num_list for c in cur_str]
if all(judge_list):
if len(cur_str) == 1:
count += 1
else:
if cur_str[0] != '0' and int(cur_str) <= 12345:
count += 1
if count == 2:
print('OK')
else:
print('NG')
_KingdomOfMoray