結果
| 問題 |
No.1592 Tenkei 90
|
| コンテスト | |
| ユーザー |
nehan_der_thal
|
| 提出日時 | 2021-07-09 21:45:57 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 1,000 ms |
| コード長 | 321 bytes |
| コンパイル時間 | 761 ms |
| コンパイル使用メモリ | 82,248 KB |
| 実行使用メモリ | 55,860 KB |
| 最終ジャッジ日時 | 2024-07-01 15:47:39 |
| 合計ジャッジ時間 | 1,900 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
from collections import defaultdict
D = defaultdict(int)
for c in "90kyoprotenkei":
D[c] += 1
D2 = defaultdict(int)
for c in input().strip():
D2[c] += 1
if len(D) != len(D2):
print("No")
else:
for c in D:
if D[c] != D2[c]:
print("No")
break
else:
print("Yes")
nehan_der_thal