QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#236369 | #6431. Oops, It's Yesterday Twice More | stcmuyi# | WA | 0ms | 3444kb | C++20 | 545b | 2023-11-03 21:47:28 | 2023-11-03 21:47:29 |
Judging History
answer
#include <bits/stdc++.h>
#define IOS ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define i64 long long
#define endl '\n'
#define lb(x) ((x) & (-x))
using namespace std;
const i64 mod = 998244353;
const int maxn = 1e3+10;
signed main()
{
IOS;
int t;
int n,a,b;
cin >> n >> a >> b;
string s;
for(int i = 1; i < n; ++i) s += 'U';
for(int i = 1; i < n; ++i) s += 'L';
for(int i = 1; i < a; ++i) s += 'D';
for(int i = 1; i < b; ++i) s += 'R';
cout << s << endl;
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3444kb
input:
3 3 3
output:
UULLDDRR
result:
wrong answer Too long.