MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / main

Function main

CodeChef_problems/The Tom and Jerry Game!/solution.cpp:11–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9using namespace std;
10
11int main()
12{
13 long long int tc, ts, js, t, c;
14 cin >> tc;
15 while(tc--)
16 {
17 cin >> ts;
18 t=ts;
19 c=0;
20 while(t%2==0)
21 {
22 c++;
23 t=t/2;
24 }
25 c++;
26 js=pow(2,c);
27 c=ts/js;
28 cout << c << endl;
29 }
30}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected