結果

問題 No.1905 PURE PHRASE
ユーザー ああいいああいい
提出日時 2022-04-15 21:40:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 387 bytes
コンパイル時間 1,166 ms
コンパイル使用メモリ 86,844 KB
実行使用メモリ 80,584 KB
最終ジャッジ日時 2023-08-26 07:40:29
合計ジャッジ時間 5,439 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
80,400 KB
testcase_01 AC 73 ms
80,188 KB
testcase_02 AC 75 ms
80,176 KB
testcase_03 AC 73 ms
80,084 KB
testcase_04 AC 75 ms
80,256 KB
testcase_05 AC 73 ms
80,404 KB
testcase_06 AC 75 ms
80,480 KB
testcase_07 AC 73 ms
80,584 KB
testcase_08 AC 73 ms
80,264 KB
testcase_09 AC 75 ms
80,072 KB
testcase_10 AC 74 ms
80,132 KB
testcase_11 AC 74 ms
80,268 KB
testcase_12 AC 74 ms
80,492 KB
testcase_13 AC 74 ms
80,344 KB
testcase_14 AC 74 ms
80,540 KB
testcase_15 AC 74 ms
80,160 KB
testcase_16 AC 76 ms
80,052 KB
testcase_17 AC 72 ms
80,488 KB
testcase_18 AC 73 ms
80,316 KB
testcase_19 AC 75 ms
80,080 KB
testcase_20 AC 74 ms
80,240 KB
testcase_21 AC 73 ms
80,268 KB
testcase_22 AC 74 ms
80,300 KB
testcase_23 AC 75 ms
80,492 KB
testcase_24 AC 76 ms
80,284 KB
testcase_25 AC 75 ms
80,084 KB
testcase_26 AC 74 ms
80,168 KB
testcase_27 AC 75 ms
80,404 KB
testcase_28 AC 74 ms
80,264 KB
testcase_29 AC 73 ms
80,468 KB
testcase_30 AC 75 ms
80,444 KB
testcase_31 AC 75 ms
80,436 KB
testcase_32 AC 74 ms
80,172 KB
testcase_33 AC 74 ms
80,260 KB
testcase_34 AC 73 ms
80,136 KB
testcase_35 AC 77 ms
80,064 KB
testcase_36 AC 73 ms
80,268 KB
testcase_37 AC 74 ms
80,296 KB
testcase_38 AC 74 ms
80,340 KB
testcase_39 AC 76 ms
80,356 KB
testcase_40 AC 76 ms
80,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

dat = ["C4","D4","E4","F4","G4","A4","B4"]
l = [261.6, 294.3, 327.0, 348.8, 392.4, 436.0, 490.5]

_min = 10 ** 18
ans = ""
for i in range(len(dat)):
    h = l[i]
    delta = int(N / h)
    tmp = 0
    for ii in range(80):
        tmp += abs(A[ii] - A[ii + delta])
    if tmp < _min:
        _min = tmp
        ans = dat[i]
print(ans)
0