結果
問題 | No.1362 [Zelkova 8th Tune] Black Sheep |
ユーザー |
👑 ![]() |
提出日時 | 2020-12-05 19:04:18 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 754 ms / 1,000 ms |
コード長 | 270 bytes |
コンパイル時間 | 171 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 77,824 KB |
最終ジャッジ日時 | 2024-09-15 20:47:14 |
合計ジャッジ時間 | 30,832 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 38 |
ソースコード
#別解5from random import randintfrom collections import defaultdictfrom time import timeS=input()N=len(S)D=defaultdict(int)BEGIN=time()while time()-BEGIN<0.70:i=randint(0,N-1)D[S[i]]+=1alpha=min(D,key=lambda x:D[x])print(S.index(alpha)+1,alpha)