Submission #3772743
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: ans+=a[i]//N a[i]%=N for j in range(N): if i!=j: a[j]+=1 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 | 295 Byte |
Status | WA |
Exec Time | 189 ms |
Memory | 39664 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 | 178 ms | 38256 KB |
example1 | WA | 172 ms | 38256 KB |
example2 | WA | 179 ms | 38256 KB |
example3 | AC | 173 ms | 38256 KB |
example4 | WA | 170 ms | 38256 KB |
maxrand0 | WA | 173 ms | 38256 KB |
maxrand1 | WA | 185 ms | 39280 KB |
maxrand2 | WA | 173 ms | 38256 KB |
maxrand3 | WA | 177 ms | 38640 KB |
maxrand4 | WA | 172 ms | 38256 KB |
maxrand5 | WA | 177 ms | 38640 KB |
maxrand6 | WA | 172 ms | 38256 KB |
maxrand7 | WA | 179 ms | 38640 KB |
maxrand8 | WA | 176 ms | 38256 KB |
maxrand9 | WA | 180 ms | 38640 KB |
rand0 | WA | 179 ms | 38256 KB |
rand1 | WA | 177 ms | 38384 KB |
rand2 | WA | 175 ms | 38512 KB |
rand3 | WA | 189 ms | 39664 KB |
rand4 | WA | 174 ms | 38256 KB |
rand5 | WA | 174 ms | 38256 KB |
rand6 | WA | 174 ms | 38256 KB |
rand7 | WA | 180 ms | 38896 KB |
rand8 | WA | 172 ms | 38256 KB |
rand9 | WA | 169 ms | 38256 KB |
small0 | AC | 172 ms | 38256 KB |
small1 | WA | 172 ms | 38512 KB |
small2 | WA | 173 ms | 38256 KB |
small3 | WA | 174 ms | 38256 KB |
small4 | WA | 183 ms | 38640 KB |
small5 | WA | 178 ms | 38640 KB |
small6 | WA | 188 ms | 38640 KB |
small7 | WA | 175 ms | 38256 KB |
small8 | WA | 181 ms | 38640 KB |
small9 | WA | 179 ms | 38640 KB |