結果

問題 No.1905 PURE PHRASE
ユーザー 👑 rin204rin204
提出日時 2022-04-15 21:52:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 505 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 87,220 KB
実行使用メモリ 81,468 KB
最終ジャッジ日時 2023-08-26 07:50:17
合計ジャッジ時間 5,613 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
81,308 KB
testcase_01 AC 88 ms
81,332 KB
testcase_02 AC 86 ms
81,352 KB
testcase_03 AC 87 ms
81,360 KB
testcase_04 AC 87 ms
81,280 KB
testcase_05 AC 87 ms
81,272 KB
testcase_06 AC 87 ms
81,444 KB
testcase_07 AC 87 ms
81,064 KB
testcase_08 AC 88 ms
81,316 KB
testcase_09 AC 87 ms
81,328 KB
testcase_10 AC 87 ms
81,272 KB
testcase_11 AC 87 ms
81,340 KB
testcase_12 AC 86 ms
81,416 KB
testcase_13 AC 88 ms
81,364 KB
testcase_14 AC 86 ms
81,040 KB
testcase_15 AC 87 ms
81,356 KB
testcase_16 AC 88 ms
81,080 KB
testcase_17 AC 86 ms
81,284 KB
testcase_18 AC 85 ms
81,316 KB
testcase_19 AC 87 ms
81,468 KB
testcase_20 AC 87 ms
81,300 KB
testcase_21 AC 87 ms
81,300 KB
testcase_22 AC 86 ms
81,468 KB
testcase_23 AC 88 ms
81,056 KB
testcase_24 AC 88 ms
81,288 KB
testcase_25 AC 86 ms
81,360 KB
testcase_26 AC 87 ms
81,268 KB
testcase_27 AC 87 ms
81,352 KB
testcase_28 AC 86 ms
81,284 KB
testcase_29 AC 87 ms
81,052 KB
testcase_30 AC 87 ms
81,348 KB
testcase_31 AC 87 ms
81,456 KB
testcase_32 AC 87 ms
81,332 KB
testcase_33 AC 86 ms
81,416 KB
testcase_34 AC 87 ms
81,392 KB
testcase_35 AC 86 ms
81,296 KB
testcase_36 AC 86 ms
81,336 KB
testcase_37 AC 87 ms
81,460 KB
testcase_38 AC 86 ms
81,300 KB
testcase_39 AC 88 ms
81,296 KB
testcase_40 AC 86 ms
81,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

lst = [261.6, 294.3, 327.0, 348.8, 392.4, 436.0, 490.5]
mi = float("inf")
ans = -1

for l in lst:
    tmp = []
    x = 44100 / l
    for i, a in enumerate(A[:int(2 * x)]):
        tmp.append((i % x, a))
    tmp.sort()
    ma = -1 << 30
    for i in range(int(2 * x - 1)):
        ma = max(ma, abs(tmp[i + 1][1] - tmp[i][1]))
        
    if ma < mi:
        mi = ma
        ans = l




print(["C4", "D4", "E4", "F4", "G4", "A4", "B4"][lst.index(ans)])
0