# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
153006 | oolimry | Naan (JOI19_naan) | C++14 | 2141 ms | 85320 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef pair<long long, long long> ii;
bool great(ii a, ii b){
long long wa = a.first / a.second;
long long wb = b.first / b.second;
if(wa == wb){
a.first %= a.second, b.first %= b.second;
return a.first * b.second < a.second * b.first;
}
return wa < wb; //is b greater than a
}
int main(){
//freopen("i.txt","r",stdin);
cin.tie(0);
long long n, l;
cin >> n >> l;
long long arr[n][l];
long long sums[n];
fill(sums,sums+n,0);
for(long long i = 0;i < n;i++)
for(long long j = 0;j < l;j++){
cin >> arr[i][j];
sums[i] += arr[i][j];
arr[i][j] *= n;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |