제출 #824886

#제출 시각아이디문제언어결과실행 시간메모리
824886alvingogo메기 농장 (IOI22_fish)C++17
0 / 100
75 ms19424 KiB
#include "fish.h" #include <bits/stdc++.h> #define fs first #define sc second #define p_q priority_queue using namespace std; const long long inf=1e16; long long max_weights(int n, int m, vector<int> x, vector<int> y, vector<int> w) { long long ans=0; vector<vector<pair<int,int> > > v(n); long long as[2]={0}; for(int i=0;i<m;i++){ v[x[i]].push_back({y[i],w[i]}); as[x[i]]+=w[i]; } //cout << as[0] << " " << as[1] << "\n"; return max(as[0],as[1]); }

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

fish.cpp: In function 'long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)':
fish.cpp:10:15: warning: unused variable 'ans' [-Wunused-variable]
   10 |     long long ans=0;
      |               ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...