結果
| 問題 | No.446 ゆきこーだーの雨と雪 (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-27 11:15:19 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 98 ms / 2,000 ms |
| コード長 | 213 bytes |
| 記録 | |
| コンパイル時間 | 628 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 15,304 KB |
| 最終ジャッジ日時 | 2026-05-22 05:26:16 |
| 合計ジャッジ時間 | 3,534 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 13 |
ソースコード
def n(s):
return sum([x not in '0123456789' for x in s])<1
z=lambda x:not(x[0]=='0' and len(x)>1)
m=12346
v='NG'
a=input()
b=input()
if n(a+b):
if int(a)<m and int(b)<m:
if z(a)&z(b):
v='OK'
print(v)