답안 #242527

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
242527 2020-06-28T06:05:52 Z NONAME Go (COCI16_go) C++14
13 / 50
5 ms 384 KB
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;

int main() {
    ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);

    int n, total = -1;
    string t = "";

    cin >> n;
    for (int i = 0; i < n; ++i) {
	string s;
	int k, m;
	cin >> s >> k >> m;

	int cur = m / k;
	if (cur > total) {
	    total = cur;
	    t = s;
	}
    }

    cout << total << "\n" << t << "\n";
}
# 결과 실행 시간 메모리 Grader output
1 Partially correct 5 ms 384 KB Partially correct
2 Partially correct 5 ms 384 KB Partially correct
3 Partially correct 4 ms 384 KB Partially correct
4 Partially correct 5 ms 384 KB Partially correct
5 Partially correct 5 ms 384 KB Partially correct
6 Partially correct 4 ms 256 KB Partially correct
7 Incorrect 5 ms 384 KB Output isn't correct
8 Partially correct 4 ms 384 KB Partially correct
9 Incorrect 5 ms 384 KB Output isn't correct
10 Partially correct 4 ms 384 KB Partially correct
11 Incorrect 4 ms 384 KB Output isn't correct
12 Incorrect 4 ms 384 KB Output isn't correct
13 Incorrect 4 ms 384 KB Output isn't correct
14 Partially correct 4 ms 384 KB Partially correct
15 Partially correct 5 ms 384 KB Partially correct
16 Partially correct 4 ms 384 KB Partially correct
17 Incorrect 5 ms 384 KB Output isn't correct
18 Incorrect 4 ms 384 KB Output isn't correct
19 Incorrect 4 ms 384 KB Output isn't correct
20 Incorrect 4 ms 384 KB Output isn't correct
21 Incorrect 5 ms 384 KB Output isn't correct
22 Incorrect 4 ms 384 KB Output isn't correct
23 Incorrect 5 ms 384 KB Output isn't correct
24 Partially correct 4 ms 384 KB Partially correct
25 Partially correct 5 ms 384 KB Partially correct