結果
問題 | No.446 ゆきこーだーの雨と雪 (1) |
ユーザー |
![]() |
提出日時 | 2019-12-24 15:27:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 477 bytes |
コンパイル時間 | 156 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-09-22 03:25:50 |
合計ジャッジ時間 | 1,310 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 13 |
ソースコード
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 = 0for 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 += 1else:if cur_str[0] != '0' and int(cur_str) <= 12345:count += 1if count == 2:print('OK')else:print('NG')