結果

問題 No.392 2分木をたどれ
ユーザー 0w10w1
提出日時 2016-11-21 02:21:45
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 289 bytes
コンパイル時間 1,329 ms
コンパイル使用メモリ 166,784 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-05 12:12:09
合計ジャッジ時間 1,745 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0