結果

問題 No.1905 PURE PHRASE
ユーザー taiga0629kyoprotaiga0629kyopro
提出日時 2022-04-15 22:09:48
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 464 bytes
コンパイル時間 248 ms
コンパイル使用メモリ 87,072 KB
実行使用メモリ 82,504 KB
最終ジャッジ日時 2023-08-26 08:02:52
合計ジャッジ時間 5,826 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 100 ms
82,104 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 97 ms
81,988 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 95 ms
81,772 KB
testcase_13 WA -
testcase_14 AC 99 ms
82,140 KB
testcase_15 WA -
testcase_16 AC 97 ms
81,844 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 96 ms
81,700 KB
testcase_20 AC 94 ms
82,120 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 97 ms
81,968 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 98 ms
81,956 KB
testcase_29 WA -
testcase_30 AC 99 ms
81,824 KB
testcase_31 WA -
testcase_32 AC 96 ms
82,128 KB
testcase_33 AC 97 ms
81,988 KB
testcase_34 AC 98 ms
81,804 KB
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 AC 96 ms
81,948 KB
testcase_39 WA -
testcase_40 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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")





0