Submission #00016
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #include<bits/stdc++.h> using namespace std; int main(){ int n; int x; int iti; stack< int > sk; cin>>n; while (n--){ cin>>x; for ( int i=0;i<8;i++){ cout<<x<<endl; if (1&x)sk.push(1); else sk.push(0); x>>=1; } for ( int i=0;i<8;i++){ cout<<sk.top(); sk.pop(); } cout<<endl; } } |
ステータス
項目 | データ |
---|---|
問題 | 0002 - プロ技 |
ユーザー名 | ei1501 |
投稿日時 | 2015-10-28 17:12:22 |
言語 | C++11 |
状態 | Wrong Answer |
得点 | 0 |
ソースコード長 | 370 Byte |
最大実行時間 | 12 ms |
最大メモリ使用量 | 544 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 0 / 100 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
s1.txt | WA | 11 ms | 472 KB |
1
|
s2.txt | WA | 10 ms | 444 KB |
1
|
s3.txt | WA | 12 ms | 544 KB |
1
|