Submission #458070
Source Code Expand
breakup() { sed -e's/[1-4]-/0-/' \ -e's/[6-9]-/5-/' \ -e's/[1-4]$/5/' \ -e's/0[6-9]$/10/' \ -e's/1[6-9]$/20/' \ -e's/2[6-9]$/30/' \ -e's/3[6-9]$/40/' \ -e's/4[6-9]$/50/' \ -e's/05[6-9]$/100/' \ -e's/15[6-9]$/200/' \ -e's/25[6-9]$/300/' \ -e's/35[6-9]$/400/' \ -e's/45[6-9]$/500/' \ -e's/55[6-9]$/600/' \ -e's/65[6-9]$/700/' \ -e's/75[6-9]$/800/' \ -e's/85[6-9]$/900/' \ -e's/095[6-9]$/1000/' \ -e's/195[6-9]$/2000/' \ -e's/$/ -/' -e$'s/-/ +\\\n/' } restore() { local bgn acc=0 cnt time sign while read cnt time sign ; do acc=$(( acc $sign cnt )) (( acc < 0 )) && exit 1 if (( acc == 0 )) ; then echo "${bgn}-${time}" unset bgn else [[ -z "${bgn}" ]] && bgn=${time} fi done (( acc > 0 )) && sleep 3 } read # Skip. breakup | sort | uniq -c | restore
Submission Info
Submission Time | |
---|---|
Task | D - 感雨時刻の整理 |
User | yuizumi |
Language | Bash (4.2.25) |
Score | 0 |
Code Size | 1041 Byte |
Status | RE |
Exec Time | 643 ms |
Memory | 4484 KB |
Judge Result
Set Name | all | ||
---|---|---|---|
Score / Max Score | 0 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
all | 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, cho_cho_chokudai.txt, chokudai_ga_cho.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt, test_18.txt, test_19.txt, test_20.txt, test_21.txt, test_22.txt, test_23.txt, test_24.txt, test_25.txt, test_26.txt, test_27.txt, test_28.txt, test_29.txt, test_30.txt, test_31.txt, test_32.txt, test_33.txt, test_34.txt, test_35.txt, test_36.txt, test_37.txt, test_38.txt, test_39.txt, test_40.txt, test_41.txt, test_42.txt, test_43.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | RE | 43 ms | 1332 KB |
00_sample_02.txt | RE | 37 ms | 1640 KB |
00_sample_03.txt | RE | 38 ms | 1392 KB |
cho_cho_chokudai.txt | RE | 470 ms | 4156 KB |
chokudai_ga_cho.txt | RE | 601 ms | 4484 KB |
test_01.txt | RE | 63 ms | 1768 KB |
test_02.txt | RE | 65 ms | 1732 KB |
test_03.txt | RE | 65 ms | 1848 KB |
test_04.txt | RE | 63 ms | 1500 KB |
test_05.txt | RE | 63 ms | 1500 KB |
test_06.txt | RE | 57 ms | 1708 KB |
test_07.txt | RE | 51 ms | 1660 KB |
test_08.txt | RE | 50 ms | 1716 KB |
test_09.txt | RE | 50 ms | 1728 KB |
test_10.txt | RE | 58 ms | 1864 KB |
test_11.txt | RE | 42 ms | 1700 KB |
test_12.txt | RE | 59 ms | 1804 KB |
test_13.txt | RE | 66 ms | 1776 KB |
test_14.txt | RE | 76 ms | 1772 KB |
test_15.txt | RE | 70 ms | 1800 KB |
test_16.txt | RE | 59 ms | 1800 KB |
test_17.txt | RE | 74 ms | 1808 KB |
test_18.txt | RE | 59 ms | 1828 KB |
test_19.txt | RE | 67 ms | 1812 KB |
test_20.txt | RE | 74 ms | 1804 KB |
test_21.txt | RE | 627 ms | 4360 KB |
test_22.txt | RE | 629 ms | 4352 KB |
test_23.txt | RE | 636 ms | 4304 KB |
test_24.txt | RE | 623 ms | 4440 KB |
test_25.txt | RE | 641 ms | 4316 KB |
test_26.txt | RE | 634 ms | 4356 KB |
test_27.txt | RE | 473 ms | 4276 KB |
test_28.txt | RE | 582 ms | 4444 KB |
test_29.txt | RE | 41 ms | 1584 KB |
test_30.txt | RE | 50 ms | 1560 KB |
test_31.txt | RE | 175 ms | 2016 KB |
test_32.txt | RE | 42 ms | 1456 KB |
test_33.txt | RE | 430 ms | 3244 KB |
test_34.txt | RE | 38 ms | 1760 KB |
test_35.txt | RE | 53 ms | 1756 KB |
test_36.txt | RE | 606 ms | 4376 KB |
test_37.txt | RE | 628 ms | 4264 KB |
test_38.txt | RE | 643 ms | 4420 KB |
test_39.txt | RE | 572 ms | 4384 KB |
test_40.txt | RE | 585 ms | 4472 KB |
test_41.txt | RE | 536 ms | 4208 KB |
test_42.txt | RE | 571 ms | 4344 KB |
test_43.txt | RE | 538 ms | 4248 KB |