結果
| 問題 |
No.2228 Creeping Ghost
|
| コンテスト | |
| ユーザー |
tree_splay
|
| 提出日時 | 2023-02-24 22:34:18 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 6 ms / 2,000 ms |
| コード長 | 457 bytes |
| コンパイル時間 | 2,014 ms |
| コンパイル使用メモリ | 194,752 KB |
| 最終ジャッジ日時 | 2025-02-10 21:45:16 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 7 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define INF 1234567890
#define ll long long
int N;
int main()
{
ios::sync_with_stdio(0); cin.tie(0);
cin.exceptions(ios::badbit | ios::failbit);
cin >> N;
string s;
s += "RDRD";
s += "RDRD";
s += "ULDU";
s += "ULUL";
s += "RDLR";
string t;
t += "RDRD";
t += "ULDU";
t += "ULUL";
t += "RDLR";
while((int)s.size() < N)
s += t;
cout << string(s.begin(), s.begin()+N) << "\n";
return 0;
}
tree_splay