結果
問題 | No.392 2分木をたどれ |
ユーザー |
|
提出日時 | 2016-12-23 12:36:30 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 591 bytes |
コンパイル時間 | 684 ms |
コンパイル使用メモリ | 80,588 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-14 15:22:30 |
合計ジャッジ時間 | 1,216 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 3 |
ソースコード
#define _USE_MATH_DEFINES#include<stdio.h>#include<string>#include<iostream>#include<cctype>#include<cstdio>#include<vector>#include<stack>#include<queue>#include <algorithm>#include<math.h>#include<set>#include<map>#include<iomanip>//#include<bits/stdc++.h>using namespace std;int main() {int a; cin >> a;while (a--) {int d;cin >> d;d++;vector<char>ans;while (d>1) {/*if (d % 2 == 0)ans.push_back('L');else ans.push_back('R');*/if (d % 2 == 0)cout << 'L';else cout << 'R';d /= 2;}cout << endl;}return 0;}