# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
703806 | Darren0724 | Naan (JOI19_naan) | C++17 | 496 ms | 262144 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define int __int128
#define pii pair<int,int>
const int INF=1e18;
bool operator<(pair<int,int> a,pair<int,int> b){
return a.first*b.second<a.second*b.first;
}
signed main(){
ios_base::sync_with_stdio(false);
cin.tie(0);
int n,m;
long long n1,m1;cin>>n1>>m1;
n=n1,m=m1;
vector<int> a(n);
vector<vector<int>> v(n,vector<int>(m)),pre(n,vector<int>(m));
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
long long tmp=0;cin>>tmp;
v[i][j]=tmp;
v[i][j]*=n;
a[i]+=v[i][j];
}
a[i]/=n;
}
/*for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
cout<<v[i][j]<<' ';
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |