Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
4149 coj WIP
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
#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"; } }
g++
1 3
Show compiler warnings
[
+
] Compiler args
[
-
]
Show input
Compilation time: 0.43 sec, absolute running time: 0.09 sec, cpu time: 0.01 sec, memory peak: 3 Mb, absolute service time: 0,52 sec
edit mode
|
history
|
discussion
NIE
stackse - search stackoverflow differently