ZeroJudge, An Online Judge System For Beginners

### An Online Judge System For Begneers

AC: Accept.
NA: Not Accepted. Some test cases were not currect.
TLE: Time Limit Exceed.
MLE: Memory Limit Exceed.
OLE: Output Limit Exceed.
RE: Runtime Error e.q.: Out of range in Array.
RF: Restricted Function.
CE: Compile Error. The Compiler
SE: System Error, undefined Errors.

`倒數18天`

#### 實驗課練習

`Every time you think for 60 seconds, a minute passes in the world.`

#### 2333

```#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int idx=0;
string track;
// return cost and head and tail
ll seq(int &head, int &tail) {
ll total = 0, t;
while (true) {
if (track[idx]=='T') {
t = stoi(track.substr(idx+1,2));
idx += 3;
else total += abs(tail-t);
tail = t;
} else if (track[idx]=='L') {
t = stoi(track.substr(idx+1,1));
idx += 2;
int h,e;
ll cost = seq(h,e);
else total += abs(tail-h);
tail = e;
total += cost*t+abs(h-e)*(t-1);
} else { // E
idx += 1;
}
}
}

int main() {
int xx,i,j;
cin >>track;
ll total = seq(i,j);
total += abs(10-i);
cout << total <<endl;
return 0;
}```

#### 只有四題!

```只有四題!努力!題目請看仔細，有兩題a開頭的題目

#### Latest Problems

 i071. 風景 (Landscape) -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } n768. 10370 - Above Average -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } k732. 2. 特殊位置 -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } n764. 10282 - Babelfish -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } k933. 10397 - Connect the Campus -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } j604. 10903 - Rock-Paper-Scissors Tournament -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } i919. 12372 - Packing for Holiday -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } e680. 11947 - Cancer or Scorpio -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } e656. 11137 - Ingenuous Cubrency -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } e637. 10465 - Homer Simpson -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } e596. 12335 - Lexicographic Order -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } e531. 10415 - Eb Alto Saxophone Player -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } e589. 11223 - O: dah dah dah! -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } e586. 01208 - Oreon -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } e585. 12797 - Letters -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } e582. 00555 - Bridge Hands -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } e581. 11067 - Little Red Riding Hood -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } e580. 00696 - How Many Knights -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } e574. 10404 - Bachet's Game -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } e568. 11639 - Guard the Land -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } e565. 10407 - Simple division -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } e562. 11401 - Triangle Counting -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } e534. 01587 - Box -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; } e513. 11349 - Symmetric Matrix -- #reference a { text-decoration: none; color: inherit; } #reference a:hover { text-decoration: underline; color: inherit; } #reference a:VISITED { text-decoration: underline; color: inherit; }
Top Coder
aaa55322aaa (兔瓦斯) 2999/ 92%
liouzhou_101 (王启圣) 2388/ 73%
becaido (Caido) 2028/ 62%
hshua (hshua) 2015/ 62%
qqqq123 (unknown) 2005/ 61%
asnewchien@g ... (david) 1880/ 58%
1360467-8@g. ... (三國迷李牧粉) 1750/ 54%
buanyz03 (張晁瑋) 1746/ 54%
inversion (「我們所認識的可符香是個像天使...) 1699/ 52%
mathfan2 (mathfan) 1689/ 52%
more...
Top Author
snail (蝸牛)
liouzhou_101 (王启圣)
ig99lp33lp33 (위즈원)
morris1028 (碼畜)
mushroom.cs9 ... (mushroom)
p3a_owhj (阿普二信)
becaido (Caido)
pcshic (PCSHIC)
hshua (hshua)
VacationClub (雄中公假社)
Top School
1: 臺北市私立延平高級中學
2: 國立嘉義高級中學
3: 新北市立板橋高級中學
4: 臺北市立第一女子高級中學
5: 臺北市立中山女子高級中學
6: 臺北市立成功高級中學
7: 高雄市立高雄高級中學
8: 臺北市立建國高級中學
9: 國立臺中高級工業職業學校
10: 國立臺灣師範大學
more...