Submission #645345

#TimeUsernameProblemLanguageResultExecution timeMemory
645345notmeCONSUL (info1cup19_consul)C++14
0 / 100
0 ms292 KiB
#include<bits/stdc++.h> #define endl '\n' #include "grader.h" using namespace std; void speed() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); } void solve(int N) { for (int i = 1; i <= N; ++ i) { int num = kth(i); int times = cnt(num); if(num > N/3) { say_answer(num); return; } } }

Compilation message (stderr)

consul.cpp: In function 'void solve(int)':
consul.cpp:18:13: warning: unused variable 'times' [-Wunused-variable]
   18 |         int times = cnt(num);
      |             ^~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...