結果

問題 No.1217 せしすせそ
ユーザー 👑 KazunKazun
提出日時 2020-09-04 21:29:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 153 ms / 2,000 ms
コード長 201 bytes
コンパイル時間 423 ms
コンパイル使用メモリ 86,780 KB
実行使用メモリ 80,112 KB
最終ジャッジ日時 2023-08-17 14:58:34
合計ジャッジ時間 3,289 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 152 ms
80,028 KB
testcase_01 AC 152 ms
79,700 KB
testcase_02 AC 150 ms
80,096 KB
testcase_03 AC 149 ms
79,956 KB
testcase_04 AC 148 ms
80,068 KB
testcase_05 AC 151 ms
80,100 KB
testcase_06 AC 152 ms
80,100 KB
testcase_07 AC 152 ms
79,948 KB
testcase_08 AC 151 ms
80,004 KB
testcase_09 AC 153 ms
80,032 KB
testcase_10 AC 153 ms
79,900 KB
testcase_11 AC 147 ms
80,112 KB
testcase_12 AC 152 ms
80,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from string import ascii_lowercase

S=input()
D={x:0 for x in ascii_lowercase}
for s in S:
    D[s]+=1

alpha=min(D,key=lambda x:D[x])
beta =max(D,key=lambda x:D[x])
print("{}to{}".format(alpha,beta))
0