結果
| 問題 |
No.1905 PURE PHRASE
|
| コンテスト | |
| ユーザー |
taiga0629kyopro
|
| 提出日時 | 2022-04-15 22:09:48 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 464 bytes |
| コンパイル時間 | 321 ms |
| コンパイル使用メモリ | 81,792 KB |
| 実行使用メモリ | 80,896 KB |
| 最終ジャッジ日時 | 2024-12-25 00:49:54 |
| 合計ジャッジ時間 | 6,140 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 13 WA * 25 |
ソースコード
n=int(input())
a=list(map(int,input().split()))
m=max(a)
ind=[]
for i in range(20,n-20):
if all(a[i]>=a[i+j] for j in range(-5,6)):
ind.append(i)
dt=0
for i in range(len(ind)-1):
dt=max(dt,ind[i+1]-ind[i])
ans=n/dt
if 255<ans<265:
print("C4")
elif 290<ans<300:
print("D4")
elif 322<ans<332:
print("E4")
elif 344<ans<353:
print("F4")
elif 388<ans<398:
print("G4")
elif 431<ans<441:
print("A4")
else:
print("B4")
taiga0629kyopro