結果
| 問題 |
No.1905 PURE PHRASE
|
| コンテスト | |
| ユーザー |
googol_S0
|
| 提出日時 | 2022-04-15 21:30:11 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 149 ms / 2,000 ms |
| コード長 | 338 bytes |
| コンパイル時間 | 416 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 112,896 KB |
| 最終ジャッジ日時 | 2024-12-25 00:01:08 |
| 合計ジャッジ時間 | 7,725 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 38 |
ソースコード
N=int(input())
A=list(map(int,input().split()))
Y=[4360,4905,2616,2943,3270,3488,3924]
X=[round(N*100/Y[i]) for i in range(7)]
B=[]
for i in range(N):
for j in range(10):
B.append(A[i])
ANS=[0]*7
for i in range(N*10):
for j in range(7):
if B[i]==B[(i+X[j])%(N*10)]:
ANS[j]+=1
print(chr(ord('A')+ANS.index(max(ANS)))+'4')
googol_S0