結果

問題 No.1905 PURE PHRASE
ユーザー ニックネームニックネーム
提出日時 2022-04-16 00:51:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 331 bytes
コンパイル時間 115 ms
コンパイル使用メモリ 10,724 KB
実行使用メモリ 13,476 KB
最終ジャッジ日時 2023-08-26 09:16:33
合計ジャッジ時間 6,900 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
12,732 KB
testcase_01 AC 113 ms
13,212 KB
testcase_02 AC 115 ms
13,228 KB
testcase_03 AC 119 ms
13,304 KB
testcase_04 AC 120 ms
13,152 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 121 ms
13,280 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 123 ms
13,220 KB
testcase_12 AC 123 ms
13,344 KB
testcase_13 AC 121 ms
13,132 KB
testcase_14 AC 127 ms
13,124 KB
testcase_15 AC 122 ms
13,192 KB
testcase_16 AC 127 ms
13,236 KB
testcase_17 AC 124 ms
13,300 KB
testcase_18 AC 126 ms
13,372 KB
testcase_19 AC 125 ms
13,116 KB
testcase_20 AC 123 ms
13,244 KB
testcase_21 AC 119 ms
13,080 KB
testcase_22 AC 123 ms
13,348 KB
testcase_23 AC 119 ms
13,316 KB
testcase_24 AC 118 ms
13,168 KB
testcase_25 AC 118 ms
13,140 KB
testcase_26 AC 123 ms
13,152 KB
testcase_27 AC 121 ms
13,184 KB
testcase_28 AC 119 ms
13,128 KB
testcase_29 WA -
testcase_30 AC 127 ms
13,144 KB
testcase_31 AC 122 ms
13,148 KB
testcase_32 AC 118 ms
13,476 KB
testcase_33 AC 125 ms
13,300 KB
testcase_34 AC 119 ms
13,108 KB
testcase_35 AC 124 ms
13,124 KB
testcase_36 AC 123 ms
13,368 KB
testcase_37 AC 119 ms
13,148 KB
testcase_38 AC 116 ms
13,244 KB
testcase_39 AC 119 ms
13,064 KB
testcase_40 AC 131 ms
13,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
height = ["C4", "D4", "E4", "F4", "G4", "A4", "B4"]
freq = [261.6, 294.3, 327.0, 348.8, 392.4, 436.0, 490.5]
period = [round(n/v) for v in freq]
diff = [0]*7
for i, v in enumerate(period):
    for j in range(n-v): diff[i] += abs(a[i]-a[i+v])
print(height[diff.index(min(diff))])
0