結果

問題 No.1592 Tenkei 90
ユーザー harapecoharapeco
提出日時 2022-03-29 11:28:07
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 705 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 82,840 KB
実行使用メモリ 53,720 KB
最終ジャッジ日時 2024-04-25 13:40:32
合計ジャッジ時間 1,615 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 33 ms
53,024 KB
testcase_06 AC 33 ms
52,796 KB
testcase_07 AC 34 ms
52,304 KB
testcase_08 AC 35 ms
52,208 KB
testcase_09 AC 34 ms
52,344 KB
testcase_10 AC 33 ms
52,152 KB
testcase_11 AC 34 ms
52,876 KB
testcase_12 AC 35 ms
52,200 KB
testcase_13 AC 33 ms
52,612 KB
testcase_14 AC 35 ms
52,632 KB
testcase_15 AC 34 ms
52,904 KB
testcase_16 AC 33 ms
52,924 KB
testcase_17 WA -
testcase_18 AC 35 ms
53,024 KB
testcase_19 AC 34 ms
53,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
s = 'kyoprotenkei90'
k = 2
y = 1
o = 2
p = 1
r = 1
t = 1
e = 2
n = 1
i = 1
nine = 1
zero = 1

for i in range(len(S)):
    if S[i] in s:
        if 'k' == S[i]:
            k -= 1
        if 'y' == S[i]:
            y -= 1
        if 'o' == S[i]:
            o -= 1
        if 'p' == S[i]:
            p -= 1
        if 'r' == S[i]:
            r -= 1
        if 't' == S[i]:
            t -= 1
        if 'e' == S[i]:
            e -= 1
        if 'n' == S[i]:
            n -= 1
        if 'i' == S[i]:
            i -= 1
        if '9' == S[i]:
            nine -= 1
        if '0' == S[i]:
            zero -= 1

if (k+y+o+p+r+t+e+n+i+nine+zero) == 0:
    print('Yes')
else:
    print('No')
0