제출 #717735

#제출 시각UTC-0아이디문제언어결과실행 시간메모리
7177352023-04-02 11:51:01AndrijaMPoi (IOI09_poi)C++14
60 / 100
549 ms32560 KiB
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n,t,p;
cin>>n>>t>>p;
long long cpt[t]={0};
vector<long long>v[n];
long long val[n];
memset(val,0,sizeof val);
vector<pair<long long,long long>>r;
for(long long i=0;i<n;i++)
{
for(long long j=0;j<t;j++)
{
long long num;
cin>>num;
v[i].push_back(num);
cpt[j]+=num;///lugje-cpt[j] treba
}
}
for(long long i=0;i<n;i++)
{
for(long long j=0;j<t;j++)
{
if(v[i][j]==1)
val[i]+=n-cpt[j];
}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

컴파일 시 표준 에러 (stderr) 메시지

poi.cpp: In function 'int main()':
poi.cpp:37:24: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   37 |     for(long long i=0;i<r.size();i++)
      |                       ~^~~~~~~~~
poi.cpp:50:24: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   50 |     for(long long i=0;i<ans.size();i++)
      |                       ~^~~~~~~~~~~
poi.cpp:54:16: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
   54 |             pos+=i+1;
      |             ~~~^~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...