結果

問題 No.1808 Fullgold Alchemist
ユーザー 330Xs330Xs
提出日時 2022-02-05 12:44:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 274 bytes
コンパイル時間 518 ms
コンパイル使用メモリ 86,664 KB
実行使用メモリ 106,536 KB
最終ジャッジ日時 2023-09-02 06:35:18
合計ジャッジ時間 8,491 ms
ジャッジサーバーID
(参考情報)
judge14 / judge16
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,212 KB
testcase_01 AC 69 ms
71,372 KB
testcase_02 AC 69 ms
71,560 KB
testcase_03 AC 70 ms
71,372 KB
testcase_04 AC 70 ms
71,376 KB
testcase_05 AC 105 ms
104,412 KB
testcase_06 AC 108 ms
106,536 KB
testcase_07 AC 108 ms
106,484 KB
testcase_08 AC 126 ms
99,720 KB
testcase_09 AC 126 ms
99,788 KB
testcase_10 AC 128 ms
99,984 KB
testcase_11 AC 125 ms
100,436 KB
testcase_12 AC 114 ms
106,032 KB
testcase_13 WA -
testcase_14 AC 112 ms
106,172 KB
testcase_15 AC 113 ms
106,288 KB
testcase_16 AC 73 ms
75,744 KB
testcase_17 WA -
testcase_18 AC 79 ms
78,876 KB
testcase_19 AC 77 ms
75,772 KB
testcase_20 AC 81 ms
81,132 KB
testcase_21 WA -
testcase_22 AC 70 ms
71,180 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 79 ms
77,988 KB
testcase_27 AC 80 ms
80,096 KB
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 84 ms
82,696 KB
testcase_31 WA -
testcase_32 AC 94 ms
90,508 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n,m = map(int,input().split())
a = list(map(int,input().split()))
i = 0
a_sum = 0
while(i < n - 1):
    a_sum += a[i]
    if(a[i] < a[i+1]):
        print(a_sum // (m * (i + 1)))
        break
    i += 1
if(i == n - 1):
    a_sum += a[i]
    print(a_sum // (m * n))
        
0