結果
問題 | No.392 2分木をたどれ |
ユーザー |
![]() |
提出日時 | 2017-05-19 05:22:02 |
言語 | C++11 (gcc 8.5.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 461 bytes |
コンパイル時間 | 769 ms |
使用メモリ | 6,252 KB |
最終ジャッジ日時 | 2023-03-25 15:15:36 |
合計ジャッジ時間 | 1,641 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,248 KB |
testcase_01 | AC | 2 ms
6,180 KB |
testcase_02 | AC | 2 ms
6,252 KB |
ソースコード
#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; string s=""; -scanf("%d",&a); a++; while(a!=1){ s=(a&1?"R":"L")+s; a>>=1; } puts(s.c_str()); } return 0; }