Submission #61559311
Source Code Expand
Copy
N,*A = $<.read.split.map(&:to_i)s,*S = [0]*(N+1)puts A.map{|a|s += S.shifta += sb = [a,S.size].mina -= bs += 1S[b] -= 1 if b<S.sizenext a}*' '
N,*A = $<.read.split.map(&:to_i) s,*S = [0]*(N+1) puts A.map{|a| s += S.shift a += s b = [a,S.size].min a -= b s += 1 S[b] -= 1 if b<S.size next a }*' '
Submission Info
Submission Time | |
---|---|
Task | D - Coming of Age Celebration |
User | ds14050 |
Language | Ruby (ruby 3.2.2) |
Score | 0 |
Code Size | 171 Byte |
Status | TLE |
Exec Time | 2213 ms |
Memory | 64688 KB |
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 400 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample00.txt, sample01.txt, sample02.txt |
All | sample00.txt, sample01.txt, sample02.txt, testcase00.txt, testcase01.txt, testcase02.txt, testcase03.txt, testcase04.txt, testcase05.txt, testcase06.txt, testcase07.txt, testcase08.txt, testcase09.txt, testcase10.txt, testcase11.txt, testcase12.txt, testcase13.txt, testcase14.txt, testcase15.txt, testcase16.txt, testcase17.txt, testcase18.txt, testcase19.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample00.txt | AC | 46 ms | 17192 KB |
sample01.txt | AC | 46 ms | 16984 KB |
sample02.txt | AC | 47 ms | 17260 KB |
testcase00.txt | AC | 46 ms | 17148 KB |
testcase01.txt | TLE | 2211 ms | 58304 KB |
testcase02.txt | AC | 256 ms | 64688 KB |
testcase03.txt | TLE | 2210 ms | 53616 KB |
testcase04.txt | TLE | 2210 ms | 60876 KB |
testcase05.txt | AC | 1834 ms | 34184 KB |
testcase06.txt | TLE | 2211 ms | 60968 KB |
testcase07.txt | TLE | 2210 ms | 52456 KB |
testcase08.txt | TLE | 2211 ms | 60792 KB |
testcase09.txt | TLE | 2213 ms | 53884 KB |
testcase10.txt | TLE | 2211 ms | 60892 KB |
testcase11.txt | TLE | 2209 ms | 35300 KB |
testcase12.txt | TLE | 2211 ms | 61032 KB |
testcase13.txt | TLE | 2210 ms | 44848 KB |
testcase14.txt | TLE | 2211 ms | 60996 KB |
testcase15.txt | AC | 159 ms | 24304 KB |
testcase16.txt | TLE | 2210 ms | 61020 KB |
testcase17.txt | TLE | 2210 ms | 53764 KB |
testcase18.txt | TLE | 2210 ms | 56732 KB |
testcase19.txt | TLE | 2210 ms | 55820 KB |