結果
| 問題 | No.446 ゆきこーだーの雨と雪 (1) |
| コンテスト | |
| ユーザー |
_KingdomOfMoray
|
| 提出日時 | 2019-12-24 15:27:49 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 20 ms / 2,000 ms |
| + 436µs | |
| コード長 | 477 bytes |
| 記録 | |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2026-10-11 23:02:19 |
| 合計ジャッジ時間 | 1,555 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 14 |
ソースコード
a = input()
b = input()
input_list = [a, b]
num_list = list(range(0, 10))
num_list_str = [str(i) for i in num_list]
count = 0
for i in range(2):
cur_str = input_list[i]
judge_list = [c in num_list_str 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