# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
151896 | 2019-09-05T11:33:26 Z | Ruxandra985 | 컴퓨터 네트워크 (BOI14_network) | C++14 | 115 ms | 4816 KB |
#include <cstdio> #include "network.h" void findRoute (int n,int a,int b){ int db[n+1]; int i,curr,nxt; for (i=1;i<=n;i++){ if (i!=b) db[i] = ping(b,i); } curr = a; db[b] = -1; while (curr!=b){ for (i=1;i<=n;i++){ if (db[i]+1 == db[curr] && ping(i,curr) == 0){ nxt = i; break; } } travelTo(nxt); curr = nxt; } }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 113 ms | 4600 KB | Output is correct |
2 | Correct | 110 ms | 4600 KB | Output is correct |
3 | Correct | 101 ms | 4684 KB | Output is correct |
4 | Correct | 100 ms | 4600 KB | Output is correct |
5 | Correct | 100 ms | 4600 KB | Output is correct |
6 | Correct | 100 ms | 4592 KB | Output is correct |
7 | Correct | 2 ms | 256 KB | Output is correct |
8 | Correct | 2 ms | 376 KB | Output is correct |
9 | Correct | 2 ms | 256 KB | Output is correct |
10 | Correct | 2 ms | 504 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 104 ms | 4600 KB | Output is correct |
2 | Correct | 27 ms | 2680 KB | Output is correct |
3 | Correct | 113 ms | 4600 KB | Output is correct |
4 | Correct | 92 ms | 4600 KB | Output is correct |
5 | Correct | 111 ms | 4600 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 104 ms | 4600 KB | Output is correct |
2 | Correct | 27 ms | 2680 KB | Output is correct |
3 | Correct | 114 ms | 4576 KB | Output is correct |
4 | Correct | 92 ms | 4548 KB | Output is correct |
5 | Correct | 112 ms | 4572 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 105 ms | 4620 KB | Output is correct |
2 | Correct | 27 ms | 2808 KB | Output is correct |
3 | Correct | 115 ms | 4728 KB | Output is correct |
4 | Correct | 95 ms | 4728 KB | Output is correct |
5 | Correct | 113 ms | 4816 KB | Output is correct |