Submission #244609

#TimeUsernameProblemLanguageResultExecution timeMemory
244609kimbj0709Political Development (BOI17_politicaldevelopment)C++14
4 / 100
5 ms384 KiB
#include<bits/stdc++.h> using namespace std; #define int long long int32_t main(){ ios::sync_with_stdio(0); cin.tie(0);cout.tie(0); int no_of_people,k; int input; cin >> no_of_people >> k; int input1; for(int i=0;i<no_of_people;i++){ cin >> input; if(input>=1){ cout << 2; return 0; } } cout << 1; }

Compilation message (stderr)

politicaldevelopment.cpp: In function 'int32_t main()':
politicaldevelopment.cpp:10:9: warning: unused variable 'input1' [-Wunused-variable]
     int input1;
         ^~~~~~
#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...