結果

問題 No.1905 PURE PHRASE
ユーザー ShirotsumeShirotsume
提出日時 2022-04-15 22:02:01
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 531 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 87,132 KB
実行使用メモリ 81,444 KB
最終ジャッジ日時 2023-08-26 07:56:47
合計ジャッジ時間 5,629 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
81,104 KB
testcase_01 WA -
testcase_02 AC 88 ms
81,296 KB
testcase_03 AC 88 ms
81,048 KB
testcase_04 AC 87 ms
81,124 KB
testcase_05 AC 85 ms
80,976 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 87 ms
81,032 KB
testcase_09 AC 84 ms
80,920 KB
testcase_10 AC 87 ms
81,216 KB
testcase_11 AC 87 ms
81,108 KB
testcase_12 AC 89 ms
81,068 KB
testcase_13 AC 88 ms
81,056 KB
testcase_14 AC 88 ms
81,080 KB
testcase_15 AC 85 ms
80,704 KB
testcase_16 AC 87 ms
81,112 KB
testcase_17 AC 87 ms
81,120 KB
testcase_18 AC 88 ms
81,020 KB
testcase_19 AC 87 ms
81,064 KB
testcase_20 AC 86 ms
80,748 KB
testcase_21 WA -
testcase_22 AC 89 ms
80,808 KB
testcase_23 AC 88 ms
81,124 KB
testcase_24 AC 89 ms
81,032 KB
testcase_25 WA -
testcase_26 AC 88 ms
81,000 KB
testcase_27 AC 87 ms
81,000 KB
testcase_28 AC 89 ms
81,184 KB
testcase_29 AC 89 ms
80,980 KB
testcase_30 AC 88 ms
80,976 KB
testcase_31 AC 86 ms
81,256 KB
testcase_32 AC 88 ms
81,176 KB
testcase_33 AC 93 ms
81,044 KB
testcase_34 AC 87 ms
81,028 KB
testcase_35 WA -
testcase_36 AC 87 ms
81,204 KB
testcase_37 AC 87 ms
81,136 KB
testcase_38 AC 88 ms
81,084 KB
testcase_39 WA -
testcase_40 AC 86 ms
81,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

shikii = round(max(a) * 0.8)

peek = [-10 ** 9]
for i in range(100, n - 100):
    if a[i] >= shikii and abs(peek[-1] - i) >= 87:
        peek.append(i)

l = len(peek)
f = 0
for i in range(l - 1):
    f += n / (peek[i + 1] - peek[i])
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