Submission #3772749
Source Code Expand
N=int(input()) a=[int(i) for i in input().split()] ans=0 while True: f=0 for i in range(N): if a[i]>=N: d=a[i]//N ans+=d a[i]%=N for j in range(N): if i!=j: a[j]+=d f=1 break if f==0: break print(ans)
Submission Info
Submission Time | |
---|---|
Task | E - Decrease (Judge ver.) |
User | Chanyuh |
Language | PyPy3 (2.4.0) |
Score | 0 |
Code Size | 307 Byte |
Status | TLE |
Exec Time | 2110 ms |
Memory | 46428 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 600 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example0, example1, example2, example3, example4 |
All | 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 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
example0 | AC | 173 ms | 38256 KB |
example1 | AC | 177 ms | 38256 KB |
example2 | AC | 178 ms | 38256 KB |
example3 | AC | 183 ms | 38256 KB |
example4 | AC | 386 ms | 41708 KB |
maxrand0 | AC | 187 ms | 38256 KB |
maxrand1 | TLE | 2109 ms | 41708 KB |
maxrand2 | AC | 191 ms | 39152 KB |
maxrand3 | TLE | 2109 ms | 42092 KB |
maxrand4 | AC | 205 ms | 40304 KB |
maxrand5 | TLE | 2109 ms | 42220 KB |
maxrand6 | AC | 211 ms | 40944 KB |
maxrand7 | TLE | 2109 ms | 43244 KB |
maxrand8 | AC | 235 ms | 42092 KB |
maxrand9 | TLE | 2110 ms | 43244 KB |
rand0 | AC | 260 ms | 42604 KB |
rand1 | TLE | 2109 ms | 43228 KB |
rand2 | TLE | 2109 ms | 42092 KB |
rand3 | TLE | 2109 ms | 41708 KB |
rand4 | TLE | 2109 ms | 43868 KB |
rand5 | TLE | 2109 ms | 41836 KB |
rand6 | TLE | 2109 ms | 46428 KB |
rand7 | TLE | 2109 ms | 42604 KB |
rand8 | TLE | 2109 ms | 42604 KB |
rand9 | TLE | 2109 ms | 42092 KB |
small0 | AC | 179 ms | 38256 KB |
small1 | AC | 186 ms | 39024 KB |
small2 | AC | 180 ms | 38256 KB |
small3 | AC | 195 ms | 38256 KB |
small4 | AC | 190 ms | 39408 KB |
small5 | AC | 192 ms | 39408 KB |
small6 | AC | 191 ms | 39408 KB |
small7 | AC | 190 ms | 39152 KB |
small8 | AC | 194 ms | 39408 KB |
small9 | AC | 188 ms | 39408 KB |