mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 2042.cpp
This commit is contained in:
parent
1ad106ad44
commit
6bcc13ae97
37
HDOJ/2042.cpp
Normal file
37
HDOJ/2042.cpp
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
#include <iostream>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <queue>
|
||||||
|
#include <stack>
|
||||||
|
#include <algorithm>
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
|
#include <cstdio>
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <cstring>
|
||||||
|
|
||||||
|
/// This Contest and Compile does not support C++11.
|
||||||
|
//#include <thread>
|
||||||
|
//#include <mutex>
|
||||||
|
//#include <condition_variable>
|
||||||
|
//#include <functional>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int n;
|
||||||
|
cin>>n;
|
||||||
|
for(int i=0;i<n;i++)
|
||||||
|
{
|
||||||
|
int a;
|
||||||
|
cin>>a;
|
||||||
|
int cc=3;
|
||||||
|
while(a--)
|
||||||
|
{
|
||||||
|
cc=(cc-1)*2;
|
||||||
|
}
|
||||||
|
cout<<cc<<endl;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user