結果

問題 No.1905 PURE PHRASE
ユーザー ShirotsumeShirotsume
提出日時 2022-04-15 22:10:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 819 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 87,136 KB
実行使用メモリ 85,100 KB
最終ジャッジ日時 2023-08-26 08:03:36
合計ジャッジ時間 13,882 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 261 ms
84,656 KB
testcase_01 WA -
testcase_02 AC 369 ms
84,348 KB
testcase_03 AC 264 ms
84,708 KB
testcase_04 AC 478 ms
84,736 KB
testcase_05 AC 205 ms
84,580 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 241 ms
84,772 KB
testcase_09 AC 199 ms
84,512 KB
testcase_10 AC 245 ms
84,536 KB
testcase_11 AC 259 ms
84,732 KB
testcase_12 AC 295 ms
84,340 KB
testcase_13 AC 262 ms
84,496 KB
testcase_14 AC 300 ms
84,488 KB
testcase_15 AC 267 ms
84,740 KB
testcase_16 AC 419 ms
84,536 KB
testcase_17 AC 360 ms
84,556 KB
testcase_18 AC 316 ms
83,952 KB
testcase_19 AC 305 ms
84,448 KB
testcase_20 AC 229 ms
84,588 KB
testcase_21 WA -
testcase_22 AC 310 ms
83,932 KB
testcase_23 AC 362 ms
84,444 KB
testcase_24 AC 253 ms
84,376 KB
testcase_25 AC 237 ms
84,552 KB
testcase_26 AC 264 ms
84,700 KB
testcase_27 AC 252 ms
84,752 KB
testcase_28 AC 298 ms
84,912 KB
testcase_29 AC 253 ms
84,612 KB
testcase_30 AC 242 ms
84,396 KB
testcase_31 AC 348 ms
84,508 KB
testcase_32 AC 500 ms
84,240 KB
testcase_33 AC 301 ms
84,744 KB
testcase_34 AC 231 ms
84,664 KB
testcase_35 WA -
testcase_36 AC 356 ms
84,248 KB
testcase_37 AC 391 ms
84,496 KB
testcase_38 AC 253 ms
84,464 KB
testcase_39 AC 243 ms
84,832 KB
testcase_40 AC 240 ms
84,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int,input().split()))
import random
ll = []
for _ in range(500):
    shikii = round(max(a) * random.uniform(0.7, 0.9))

    peek = [-10 ** 9]
    for i in range(100, n - 100):
        if a[i] >= shikii and abs(peek[-1] - i) >= 90 * random.uniform(0.8, 1.0):
            peek.append(i)

    peek = peek[1:]
    l = len(peek)
    if l <= 2: continue
    f = 0
    for i in range(l - 1):
        f += n / (peek[i + 1] - peek[i])
    f = f / (l - 1)

    sa = 10 ** 9
    ans = None
    li = [(261.6, 'C4'), (294.3, 'D4'), (327.0, 'E4'), (348.8, 'F4'), (392.4, 'G4'), (436.0, 'A4'), (490.5, 'B4')]

    for v, c in li:
        if abs(f - v) < sa:
            sa = abs(f - v)
            ans = c
    ll.append(ans)
from collections import Counter

ll = Counter(ll)
print(ll.most_common()[0][0])
0