結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー gorugo30
提出日時 2021-02-23 21:41:53
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 286 bytes
コンパイル時間 169 ms
コンパイル使用メモリ 82,272 KB
実行使用メモリ 54,064 KB
最終ジャッジ日時 2024-09-22 15:55:47
合計ジャッジ時間 1,507 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 11 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

def isok(S):
    if S[0] == "0" and len(S) != 1:
        return False
    cnt = 0
    for i in range(10):
        cnt += S.count(str(i))
    if cnt != len(S):
        return False
    return True
    
A = input()
B = input()
if isok(A) and isok(B):
    print("OK")
else:
    print("NG")
0