結果

問題 No.1905 PURE PHRASE
ユーザー hir355hir355
提出日時 2022-04-15 21:40:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 359 bytes
コンパイル時間 285 ms
コンパイル使用メモリ 87,316 KB
実行使用メモリ 81,212 KB
最終ジャッジ日時 2023-08-26 07:40:34
合計ジャッジ時間 5,504 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
80,708 KB
testcase_01 AC 87 ms
80,880 KB
testcase_02 AC 89 ms
80,968 KB
testcase_03 AC 87 ms
80,956 KB
testcase_04 AC 87 ms
80,872 KB
testcase_05 AC 86 ms
80,904 KB
testcase_06 AC 87 ms
80,808 KB
testcase_07 AC 88 ms
81,044 KB
testcase_08 AC 85 ms
80,928 KB
testcase_09 AC 86 ms
81,212 KB
testcase_10 AC 86 ms
80,836 KB
testcase_11 AC 86 ms
80,712 KB
testcase_12 AC 86 ms
81,048 KB
testcase_13 AC 87 ms
81,040 KB
testcase_14 AC 85 ms
80,924 KB
testcase_15 AC 87 ms
80,908 KB
testcase_16 AC 86 ms
80,876 KB
testcase_17 AC 85 ms
80,968 KB
testcase_18 AC 84 ms
80,968 KB
testcase_19 AC 84 ms
81,080 KB
testcase_20 AC 87 ms
81,008 KB
testcase_21 AC 87 ms
80,728 KB
testcase_22 AC 86 ms
80,792 KB
testcase_23 AC 85 ms
80,888 KB
testcase_24 AC 85 ms
80,840 KB
testcase_25 AC 85 ms
80,940 KB
testcase_26 AC 86 ms
80,960 KB
testcase_27 AC 85 ms
80,972 KB
testcase_28 AC 85 ms
80,976 KB
testcase_29 AC 85 ms
80,916 KB
testcase_30 AC 86 ms
80,928 KB
testcase_31 AC 86 ms
80,880 KB
testcase_32 AC 85 ms
80,976 KB
testcase_33 AC 86 ms
81,048 KB
testcase_34 AC 86 ms
80,888 KB
testcase_35 AC 86 ms
80,884 KB
testcase_36 AC 86 ms
80,956 KB
testcase_37 AC 84 ms
80,936 KB
testcase_38 AC 85 ms
81,008 KB
testcase_39 AC 85 ms
80,868 KB
testcase_40 AC 88 ms
80,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

f = [261.6, 294.3, 327.0, 348.8, 392.4, 436.0, 490.5]
ans = ['C4', 'D4', 'E4', 'F4', 'G4', 'A4', 'B4']
n = int(input())
a = list(map(int, input().split()))
res = -1
d = -1
for i in range(7):
    t = int(n // f[i])
    dd = 0
    for j in range(1000):
        dd += abs(a[j] - a[j + t])
    if d == -1 or dd < d:
        d = dd
        res = i
print(ans[res])
0