Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
FuktExam.cpp
good triplet
C++ Array printing
Boost phoenix. e.g 2: functor
Size of data type test
scuba
Finalproject
PalindromePair-s1
Operator Overload
read_write_lock_acc
Please log in to post a comment.