QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#236369#6431. Oops, It's Yesterday Twice Morestcmuyi#WA 0ms3444kbC++20545b2023-11-03 21:47:282023-11-03 21:47:29

Judging History

你现在查看的是最新测评结果

  • [2023-11-03 21:47:29]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3444kb
  • [2023-11-03 21:47:28]
  • 提交

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.