結果
問題 | No.1905 PURE PHRASE |
ユーザー |
![]() |
提出日時 | 2022-04-15 21:40:41 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 68 ms / 2,000 ms |
コード長 | 359 bytes |
コンパイル時間 | 252 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 68,992 KB |
最終ジャッジ日時 | 2024-12-25 00:16:09 |
合計ジャッジ時間 | 4,048 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 38 |
ソースコード
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])