Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
4149 coj WIP
#include <iostream> #include <map> using namespace std; bool jugada(int n) { if(n&1) return false; return !jugada(n>>1); } int main() { ios_base::sync_with_stdio(0); cin.tie(0); int T, N; cin >> T; while(T--) { cin >> N; if(jugada(N)) cout << "TAK\n"; else cout << "NIE\n"; } }
run
|
edit
|
history
|
help
0
Изволов#2
Exempel 1
Search in a rotated sorted array
ad
Spejmer
VirtualRestoPoint
Q
Dar
Proga1
NamespaceId