結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| ユーザー |
tktk_snsn
|
| 提出日時 | 2021-02-24 22:49:20 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 316 bytes |
| コンパイル時間 | 81 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-09-24 23:38:28 |
| 合計ジャッジ時間 | 1,333 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
from string import ascii_letters
ng = set(ascii_letters)
def check(S):
if S == "0":
return True
if not set(S).isdisjoint(ng):
return False
if S[0] == "0":
return False
return int(S) <= 12345
ans = check(input()) & check(input())
if ans:
print("OK")
else:
print("NG")
tktk_snsn