結果

問題 No.392 2分木をたどれ
ユーザー tabataba
提出日時 2017-05-19 05:19:42
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 441 bytes
コンパイル時間 828 ms
コンパイル使用メモリ 109,512 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-19 01:49:42
合計ジャッジ時間 1,349 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <cstdio>
#include <cstring>
#include <cmath>
#include <cassert>
#include <random>
#include <vector>
#include <algorithm>
#include <array>
#include <functional>
#include <utility>
#include <regex>
#include <tuple>
#include <map>

using namespace std;

int main(){
	int64_t m;
	-scanf("%ld",&m);
	for(int i=0;i<m;i++){
		int a;
		-scanf("%d",&a);
		a++;
		while(a!=1){
			printf(a&1?"R":"L");
			a>>=1;
		}
		puts("");
	}
	return 0;
}
0