結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
81,132 KB
testcase_01 AC 92 ms
81,140 KB
testcase_02 AC 91 ms
81,228 KB
testcase_03 WA -
testcase_04 AC 91 ms
81,072 KB
testcase_05 AC 90 ms
81,036 KB
testcase_06 AC 90 ms
81,160 KB
testcase_07 AC 90 ms
81,120 KB
testcase_08 WA -
testcase_09 AC 90 ms
81,112 KB
testcase_10 AC 89 ms
81,140 KB
testcase_11 WA -
testcase_12 AC 92 ms
80,920 KB
testcase_13 AC 91 ms
81,176 KB
testcase_14 AC 90 ms
81,048 KB
testcase_15 AC 93 ms
81,192 KB
testcase_16 AC 91 ms
81,096 KB
testcase_17 AC 91 ms
81,180 KB
testcase_18 AC 91 ms
81,308 KB
testcase_19 AC 89 ms
81,260 KB
testcase_20 AC 90 ms
81,176 KB
testcase_21 AC 90 ms
81,104 KB
testcase_22 WA -
testcase_23 AC 91 ms
81,164 KB
testcase_24 AC 91 ms
81,196 KB
testcase_25 AC 91 ms
81,016 KB
testcase_26 WA -
testcase_27 AC 90 ms
80,856 KB
testcase_28 AC 92 ms
81,096 KB
testcase_29 AC 90 ms
81,180 KB
testcase_30 AC 92 ms
80,888 KB
testcase_31 AC 91 ms
81,124 KB
testcase_32 AC 92 ms
81,128 KB
testcase_33 AC 91 ms
81,124 KB
testcase_34 AC 91 ms
81,008 KB
testcase_35 AC 90 ms
81,168 KB
testcase_36 WA -
testcase_37 AC 91 ms
81,176 KB
testcase_38 AC 91 ms
81,184 KB
testcase_39 AC 92 ms
81,020 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 + 3 * mid) / 4
thl = (mi + 3 * mid) / 4
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