Submission #453895
Source Code Expand
read a; if [ $a -eq 1 ];then awk '{print $0}' else tail -$a|sort -n|awk -F- '{ m=int(substr($1,4,1)) if (m!=0) { if (m < 5) { $1=$1-m } else if (m > 5) { $1=$1-m+5 } } m=int(substr($2,4,1)) if (m!=0) { if (m < 5) { $2=$2-m+5 } else if (m > 5) { n=int(substr($2,3,2)) if (n >= 50) { $2=$2-m-50+100 } else { $2=$2-m+10 } } } print $1"-"$2 }'|uniq | awk -F- '{ if (right !=null) { if (right>=$1) { if ($2>right) { right=$2 } } else { print left"-"right left=$1 right=$2 } } else { left=$1 right=$2 } }; END {print left"-"right}'|uniq fi
Submission Info
Submission Time | |
---|---|
Task | D - 感雨時刻の整理 |
User | jkojm23 |
Language | Bash (4.2.25) |
Score | 0 |
Code Size | 818 Byte |
Status | WA |
Exec Time | 233 ms |
Memory | 3328 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 | AC | 39 ms | 1332 KB |
00_sample_02.txt | AC | 28 ms | 976 KB |
00_sample_03.txt | AC | 39 ms | 1560 KB |
cho_cho_chokudai.txt | WA | 233 ms | 3328 KB |
chokudai_ga_cho.txt | AC | 198 ms | 3188 KB |
test_01.txt | AC | 42 ms | 1568 KB |
test_02.txt | AC | 40 ms | 1380 KB |
test_03.txt | AC | 39 ms | 1480 KB |
test_04.txt | AC | 40 ms | 1488 KB |
test_05.txt | AC | 41 ms | 1600 KB |
test_06.txt | AC | 39 ms | 1492 KB |
test_07.txt | AC | 42 ms | 1576 KB |
test_08.txt | AC | 41 ms | 1564 KB |
test_09.txt | AC | 42 ms | 1608 KB |
test_10.txt | AC | 42 ms | 1724 KB |
test_11.txt | WA | 41 ms | 1424 KB |
test_12.txt | AC | 40 ms | 1592 KB |
test_13.txt | AC | 38 ms | 1672 KB |
test_14.txt | AC | 40 ms | 1636 KB |
test_15.txt | AC | 41 ms | 1452 KB |
test_16.txt | WA | 43 ms | 1668 KB |
test_17.txt | WA | 41 ms | 1596 KB |
test_18.txt | WA | 41 ms | 1700 KB |
test_19.txt | WA | 41 ms | 1540 KB |
test_20.txt | WA | 42 ms | 1636 KB |
test_21.txt | AC | 222 ms | 3156 KB |
test_22.txt | AC | 211 ms | 3224 KB |
test_23.txt | AC | 211 ms | 3136 KB |
test_24.txt | WA | 197 ms | 3176 KB |
test_25.txt | AC | 217 ms | 3128 KB |
test_26.txt | AC | 182 ms | 3252 KB |
test_27.txt | WA | 181 ms | 3276 KB |
test_28.txt | WA | 201 ms | 3172 KB |
test_29.txt | WA | 28 ms | 924 KB |
test_30.txt | WA | 43 ms | 1568 KB |
test_31.txt | WA | 60 ms | 1916 KB |
test_32.txt | WA | 41 ms | 1584 KB |
test_33.txt | WA | 129 ms | 2620 KB |
test_34.txt | WA | 39 ms | 1628 KB |
test_35.txt | WA | 38 ms | 1620 KB |
test_36.txt | WA | 218 ms | 3152 KB |
test_37.txt | WA | 191 ms | 3136 KB |
test_38.txt | AC | 186 ms | 3236 KB |
test_39.txt | WA | 212 ms | 3244 KB |
test_40.txt | WA | 211 ms | 3240 KB |
test_41.txt | AC | 116 ms | 3208 KB |
test_42.txt | AC | 121 ms | 3180 KB |
test_43.txt | AC | 115 ms | 3232 KB |