結果

問題 No.1592 Tenkei 90
ユーザー AEnAEn
提出日時 2022-05-12 12:03:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 99 ms / 1,000 ms
コード長 338 bytes
コンパイル時間 406 ms
コンパイル使用メモリ 87,272 KB
実行使用メモリ 71,728 KB
最終ジャッジ日時 2023-09-27 10:53:33
合計ジャッジ時間 4,352 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
71,704 KB
testcase_01 AC 97 ms
71,480 KB
testcase_02 AC 96 ms
71,508 KB
testcase_03 AC 99 ms
71,444 KB
testcase_04 AC 98 ms
71,420 KB
testcase_05 AC 95 ms
71,496 KB
testcase_06 AC 98 ms
71,672 KB
testcase_07 AC 96 ms
71,572 KB
testcase_08 AC 94 ms
71,336 KB
testcase_09 AC 95 ms
71,268 KB
testcase_10 AC 97 ms
71,488 KB
testcase_11 AC 97 ms
71,420 KB
testcase_12 AC 95 ms
71,728 KB
testcase_13 AC 97 ms
71,660 KB
testcase_14 AC 95 ms
71,420 KB
testcase_15 AC 96 ms
71,680 KB
testcase_16 AC 99 ms
71,480 KB
testcase_17 AC 94 ms
71,684 KB
testcase_18 AC 95 ms
71,636 KB
testcase_19 AC 95 ms
71,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
S = input()
s = 'kyoprotenkei90'
d = defaultdict(int)
for i in range(14):
    d[S[i]] += 1
for ss in s:
    if ss == 'k' or ss == 'o' or ss == 'e':
        if d[ss] != 2:
            print('No')
            exit()
    else:
        if d[ss] != 1:
            print('No')
            exit()
print('Yes')
0