結果

問題 No.1905 PURE PHRASE
ユーザー ShirotsumeShirotsume
提出日時 2022-04-15 21:56:04
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 549 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 87,216 KB
実行使用メモリ 83,320 KB
最終ジャッジ日時 2023-08-26 07:52:08
合計ジャッジ時間 5,737 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
81,012 KB
testcase_01 RE -
testcase_02 AC 87 ms
80,968 KB
testcase_03 AC 87 ms
80,876 KB
testcase_04 WA -
testcase_05 AC 84 ms
80,772 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 RE -
testcase_10 WA -
testcase_11 AC 86 ms
81,216 KB
testcase_12 AC 90 ms
81,284 KB
testcase_13 WA -
testcase_14 AC 87 ms
81,124 KB
testcase_15 AC 85 ms
81,072 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 87 ms
80,884 KB
testcase_19 AC 89 ms
81,416 KB
testcase_20 AC 85 ms
81,208 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 86 ms
81,012 KB
testcase_25 WA -
testcase_26 AC 87 ms
81,192 KB
testcase_27 WA -
testcase_28 AC 88 ms
81,188 KB
testcase_29 AC 87 ms
80,824 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 88 ms
81,132 KB
testcase_33 AC 88 ms
81,228 KB
testcase_34 AC 87 ms
80,892 KB
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 AC 88 ms
81,320 KB
testcase_39 WA -
testcase_40 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int,input().split()))

shikii = round(max(a) * 0.9)

peek = []
for i in range(100, n - 100):
    if a[i] >= shikii and a[i - 1] < a[i] and a[i] > a[i + 1]:
        peek.append(i)

l = len(peek)
f = 0
for i in range(l - 1):
    f += n / (peek[i + 1] - peek[i])
assert l >= 1
f = f / (l - 1)

sa = 10 ** 9
ans = None
li = [(261.6, 'C4'), (294.3, 'D4'), (327.0, 'E4'), (348.8, 'F4'), (392.4, 'G4'), (436.0, 'A4'), (490.5, 'B4')]

for v, c in li:
    if abs(f - v) < sa:
        sa = abs(f - v)
        ans = c
print(ans)

0