結果

問題 No.1905 PURE PHRASE
ユーザー 👑 rin204rin204
提出日時 2022-04-15 21:38:54
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 540 bytes
コンパイル時間 444 ms
コンパイル使用メモリ 86,908 KB
実行使用メモリ 81,360 KB
最終ジャッジ日時 2023-08-26 07:39:34
合計ジャッジ時間 5,177 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
80,988 KB
testcase_01 AC 82 ms
81,088 KB
testcase_02 AC 81 ms
81,136 KB
testcase_03 WA -
testcase_04 AC 80 ms
81,248 KB
testcase_05 AC 80 ms
81,240 KB
testcase_06 AC 79 ms
81,252 KB
testcase_07 AC 82 ms
81,204 KB
testcase_08 WA -
testcase_09 AC 81 ms
80,876 KB
testcase_10 AC 82 ms
81,024 KB
testcase_11 WA -
testcase_12 AC 82 ms
81,228 KB
testcase_13 AC 80 ms
81,244 KB
testcase_14 AC 79 ms
81,360 KB
testcase_15 AC 82 ms
81,148 KB
testcase_16 AC 81 ms
81,172 KB
testcase_17 AC 82 ms
81,204 KB
testcase_18 AC 82 ms
80,896 KB
testcase_19 AC 81 ms
81,160 KB
testcase_20 AC 81 ms
81,080 KB
testcase_21 AC 80 ms
81,224 KB
testcase_22 WA -
testcase_23 AC 80 ms
81,188 KB
testcase_24 AC 80 ms
81,240 KB
testcase_25 AC 80 ms
81,148 KB
testcase_26 WA -
testcase_27 AC 80 ms
81,268 KB
testcase_28 AC 83 ms
81,284 KB
testcase_29 AC 79 ms
81,152 KB
testcase_30 AC 79 ms
81,108 KB
testcase_31 AC 77 ms
81,268 KB
testcase_32 AC 78 ms
80,896 KB
testcase_33 AC 80 ms
81,240 KB
testcase_34 AC 82 ms
81,240 KB
testcase_35 AC 82 ms
80,872 KB
testcase_36 WA -
testcase_37 AC 82 ms
80,896 KB
testcase_38 AC 82 ms
81,164 KB
testcase_39 AC 80 ms
81,124 KB
testcase_40 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = list(map(int, input().split()))
ma = -33000
mi = 33000

for a in A:
    ma = max(a, ma)
    mi = min(a, mi)

mid = (ma + mi) / 2
thr = (ma + 2 * mid) / 3
thl = (mi + 2 * mid) / 3
cnt = 0
t = 0
for a in A:
    if t == 0 and a > thr:
        cnt += 1
        t = 1
    elif t == 1 and a < thl:
        t = 0

lst = [261.6, 294.3, 327.0, 348.8, 392.4, 436.0, 490.5]
mi = 1000
for l in lst:
    d = abs(l - cnt)
    if d < mi:
        mi = d
        ans = l
print(["C4", "D4", "E4", "F4", "G4", "A4", "B4"][lst.index(ans)])
0