結果
問題 |
No.392 2分木をたどれ
|
ユーザー |
![]() |
提出日時 | 2025-04-18 15:27:55 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 295 bytes |
コンパイル時間 | 6,511 ms |
コンパイル使用メモリ | 207,244 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-04-18 15:28:02 |
合計ジャッジ時間 | 4,657 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 3 |
ソースコード
#include<bits/stdc++.h> #define int long long using namespace std; void sol(){ int n,c; cin>>n; n++; while(n>1){ if(n&1) cout<<"R"; else cout<<"L"; n>>=1; }cout<<endl; } signed main(){ // freopen(".in","r",stdin); // freopen(".out","w",stdout); int T; cin>>T; while(T--) sol(); }