結果
| 問題 |
No.392 2分木をたどれ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-21 02:21:45 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 289 bytes |
| コンパイル時間 | 1,579 ms |
| コンパイル使用メモリ | 166,824 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 09:24:18 |
| 合計ジャッジ時間 | 1,807 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 3 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
signed main(){
int M; cin >> M;
for( int i = 0; i < M; ++i ){
string ans;
int A; cin >> A;
while( A )
ans += "LR"[ A & 1 ],
A >>= 1;
reverse( ans.begin(), ans.end() );
cout << ans << endl;
}
return 0;
}