제출 #1064429

#제출 시각아이디문제언어결과실행 시간메모리
1064429anango친구 (IOI14_friend)C++17
8 / 100
1 ms348 KiB
#include "friend.h" #include <bits/stdc++.h> #define int long long using namespace std; int INF = 1LL<<60; // Find out best sample signed findSample(signed n,signed confidence[],signed host[],signed protocol[]){ int ans=10; //let 0 denote i, 1 denote the friends of i //let dp0[i] = answer if we are allowed 0 or 1 //dp1[i] = answer if we're only allowed 0 //dp2[i] = answer if we're only allowed 1 //dp3[i] = answer if we're allowed neither //in the subtree of i int ma = -INF; for (int i=0; i<n; i++) { ma=max(ma,(int)confidence[i]); } return ma; }

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

friend.cpp: In function 'int findSample(int, int*, int*, int*)':
friend.cpp:9:6: warning: unused variable 'ans' [-Wunused-variable]
    9 |  int ans=10;
      |      ^~~
#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...