# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
741485 | 2023-05-14T08:30:25 Z | rahidilbayramli | 올림픽 (KOI13_olympic) | C++17 | 1 ms | 212 KB |
#include<bits/stdc++.h> #define ll long long #define ld long double #define pb push_back #define vl vector<ll> #define sl set<ll> #define pii pair<int, int> #define pll pair<ll, ll> #define all(v) v.begin(), v.end() using namespace std; int main(){ ll n, k, x, y, i, d = 0; cin >> n >> k; vl g(n+1), s(n+1), b(n+1); for(i = 1; i <= n; i++){ cin >> x; cin >> g[x] >> s[x] >> b[x]; } for(i = 1; i <= n; i++) { if(g[i] > g[k]) d++; else if(g[i] == g[k] && s[i] > s[k]) d++; else if(g[i] == g[k] && s[i] == s[k] && b[i] > b[k]) d++; } cout << d << "\n"; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 212 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |