Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
3
#include <bits/stdc++.h> using namespace std; typedef long long int ll; #define mp make_pair #define pb push_back #define pii pair<int, int> int main(){ ios_base :: sync_with_stdio(0); cin.tie(0); int t; cin >> t; for(int i = 1; i <= t; i++){ cout << "Case #" << i << ": "; int n; cin >> n; vector<int> p(n+1, 0); for(int j = 0; j < n+1; j++) cin >> p[j]; if(n % 2 == 0){ cout << 0 << endl; } else{ cout << 1 << endl; cout << 0.0 << endl; } } return 0; }
run
|
edit
|
history
|
help
0
akshitha
Boost adapters foreach
CODE K
ASHA
CirclQ
template
Web Browser History - DLL
float precision test
TypeSizeTest
Print reverese string non repeated chars