AtCoder Regular Contest 079

Submission #1466238

Source codeソースコード

N = int(input())
N_ = N-1
a = list(map(int, input().split()))
result = 0

while max(a) >= N:
    for i in range(N):
        if a[i] >= N:
            mul, a[i] = divmod(a[i], N)
            for j in range(N):
                if i == j:
                    continue
                a[j] += mul
            result += mul

print(result)

Submission

Task問題 E - Decrease (Judge ver.)
User nameユーザ名 htkb
Created time投稿日時
Language言語 Python3 (3.4.3)
Status状態 AC
Score得点 600
Source lengthソースコード長 348 Byte
File nameファイル名
Exec time実行時間 417 ms
Memory usageメモリ使用量 3060 KB

Test case

Set

Set name Score得点 / Max score Cases
Sample - example0,example1,example2,example3,example4
All 600 / 600 example0,example1,example2,example3,example4,maxrand0,maxrand1,maxrand2,maxrand3,maxrand4,maxrand5,maxrand6,maxrand7,maxrand8,maxrand9,rand0,rand1,rand2,rand3,rand4,rand5,rand6,rand7,rand8,rand9,small0,small1,small2,small3,small4,small5,small6,small7,small8,small9

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
example0 AC 17 ms 2940 KB
example1 AC 17 ms 3060 KB
example2 AC 17 ms 3060 KB
example3 AC 17 ms 2940 KB
example4 AC 20 ms 2940 KB
maxrand0 AC 17 ms 3060 KB
maxrand1 AC 417 ms 2940 KB
maxrand2 AC 17 ms 3060 KB
maxrand3 AC 409 ms 3060 KB
maxrand4 AC 18 ms 3060 KB
maxrand5 AC 361 ms 2940 KB
maxrand6 AC 18 ms 2940 KB
maxrand7 AC 350 ms 2940 KB
maxrand8 AC 18 ms 2940 KB
maxrand9 AC 332 ms 3060 KB
rand0 AC 19 ms 2940 KB
rand1 AC 51 ms 2940 KB
rand2 AC 84 ms 2940 KB
rand3 AC 109 ms 3060 KB
rand4 AC 42 ms 3060 KB
rand5 AC 36 ms 2940 KB
rand6 AC 28 ms 3060 KB
rand7 AC 219 ms 2940 KB
rand8 AC 24 ms 3060 KB
rand9 AC 52 ms 3060 KB
small0 AC 17 ms 3060 KB
small1 AC 18 ms 3060 KB
small2 AC 17 ms 2940 KB
small3 AC 17 ms 3060 KB
small4 AC 23 ms 3060 KB
small5 AC 25 ms 2940 KB
small6 AC 20 ms 3060 KB
small7 AC 17 ms 2940 KB
small8 AC 23 ms 2940 KB
small9 AC 27 ms 3060 KB