Submission #00048


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define fr first
#define sc second
typedef vector<int> Vi;
typedef pair<int,int> Pii;
typedef pair<int,Pii> Pip;
const int INF = (1<<30);
const int dx[]={1,0,-1,0},dy[]={0,-1,0,1};
int main(){
int n;
cin >> n;
while( n-- ) {
int ans[8] = {0};
int a;
cin >> a;
bitset<8> value(a);
cout << value << endl;
}
}

ステータス

項目 データ
問題 0002 - プロ技
ユーザー名 ei1430
投稿日時 2015-10-28 17:55:48
言語 C++11
状態 Accepted
得点 100
ソースコード長 431 Byte
最大実行時間 13 ms
最大メモリ使用量 552 KB

セット

セット 得点 Cases
1 ALL 100 / 100 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
s1.txt AC 12 ms 472 KB
1
s2.txt AC 13 ms 452 KB
1
s3.txt AC 11 ms 552 KB
1