結果

問題 No.1905 PURE PHRASE
ユーザー ニックネームニックネーム
提出日時 2022-04-16 00:43:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 338 bytes
コンパイル時間 120 ms
コンパイル使用メモリ 10,792 KB
実行使用メモリ 13,500 KB
最終ジャッジ日時 2023-08-26 09:13:27
合計ジャッジ時間 3,285 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
12,656 KB
testcase_01 AC 30 ms
13,124 KB
testcase_02 AC 30 ms
13,148 KB
testcase_03 AC 30 ms
13,292 KB
testcase_04 AC 30 ms
13,292 KB
testcase_05 AC 31 ms
13,232 KB
testcase_06 AC 30 ms
13,120 KB
testcase_07 WA -
testcase_08 AC 31 ms
13,204 KB
testcase_09 AC 31 ms
13,300 KB
testcase_10 AC 30 ms
13,172 KB
testcase_11 AC 31 ms
13,204 KB
testcase_12 AC 31 ms
13,484 KB
testcase_13 AC 30 ms
13,280 KB
testcase_14 AC 31 ms
13,172 KB
testcase_15 AC 31 ms
13,164 KB
testcase_16 AC 30 ms
13,272 KB
testcase_17 AC 30 ms
13,168 KB
testcase_18 AC 31 ms
13,448 KB
testcase_19 AC 30 ms
13,120 KB
testcase_20 AC 31 ms
13,148 KB
testcase_21 AC 30 ms
13,212 KB
testcase_22 AC 31 ms
13,448 KB
testcase_23 AC 31 ms
13,172 KB
testcase_24 AC 31 ms
13,148 KB
testcase_25 AC 31 ms
13,204 KB
testcase_26 AC 30 ms
13,152 KB
testcase_27 AC 31 ms
13,156 KB
testcase_28 AC 30 ms
13,168 KB
testcase_29 AC 30 ms
13,116 KB
testcase_30 AC 30 ms
13,272 KB
testcase_31 AC 30 ms
13,276 KB
testcase_32 AC 30 ms
13,496 KB
testcase_33 AC 31 ms
13,228 KB
testcase_34 AC 31 ms
13,056 KB
testcase_35 AC 30 ms
13,096 KB
testcase_36 AC 31 ms
13,500 KB
testcase_37 AC 31 ms
13,236 KB
testcase_38 AC 31 ms
13,116 KB
testcase_39 AC 31 ms
13,292 KB
testcase_40 AC 31 ms
13,172 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 = [int(n/v) for v in freq]
diff = [0]*7
for i, v in enumerate(period):
    for j in range(n//v-1): diff[i] += abs(a[v*j]-a[v*(j+1)])
print(height[diff.index(min(diff))])
0