結果
問題 |
No.2228 Creeping Ghost
|
ユーザー |
|
提出日時 | 2023-02-24 22:17:17 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 261 bytes |
コンパイル時間 | 1,725 ms |
コンパイル使用メモリ | 168,448 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-13 05:37:59 |
合計ジャッジ時間 | 3,051 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 1 WA * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; string x = "DDDRRRUUULLL"; int main() { int t; cin >> t; int a = t / 12, b = t % 12; string ans = ""; while(a--) { ans += x; } ans += x.substr(0, b); cout << ans << endl; }