# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
22578 | 2017-04-30T05:41:54 Z | wim(#994, wimzzang) | Donut-shaped Enclosure (KRIII5_DE) | C++ | 0 ms | 2020 KB |
#include <iostream> #include <vector> using namespace std; typedef struct data { int x, y; int score; }Data; int main() { //freopen("input.txt", "r", stdin); //setbuf(stdout, NULL); int N, L, R; cin >> N >> L >> R; vector<Data> donut; for (int i = 0; i < N; i++){ Data tmp; cin >> tmp.x >> tmp.y >> tmp.score; if(0 < tmp.score) donut.push_back(tmp); } int sum = 0; for (int i = 0; i < donut.size(); i++) sum += donut[i].score; cout << sum << endl; return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 2020 KB | Output is correct |
2 | Correct | 0 ms | 2020 KB | Output is correct |
3 | Incorrect | 0 ms | 2020 KB | Output isn't correct |
4 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 2020 KB | Output is correct |
2 | Correct | 0 ms | 2020 KB | Output is correct |
3 | Incorrect | 0 ms | 2020 KB | Output isn't correct |
4 | Halted | 0 ms | 0 KB | - |