結果
| 問題 |
No.392 2分木をたどれ
|
| コンテスト | |
| ユーザー |
femto
|
| 提出日時 | 2016-07-12 01:20:28 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 9 ms / 2,000 ms |
| コード長 | 383 bytes |
| コンパイル時間 | 573 ms |
| コンパイル使用メモリ | 68,712 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-14 14:10:14 |
| 合計ジャッジ時間 | 1,011 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 |
ソースコード
#include <iostream>
#include <vector>
#include <cstring>
#include <string>
#include <algorithm>
#include <iomanip>
using namespace std;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int m;
cin >> m; while(m--) {
int n;
cin >> n;
string ans;
while(n) {
if(n % 2) ans = 'L' + ans;
else ans = 'R' + ans;
n = (n - 1) / 2;
}
cout << ans << endl;
}
}
femto