QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#665490#6431. Oops, It's Yesterday Twice MorezhoudashuaiWA 0ms3628kbC++141.3kb2024-10-22 13:32:472024-10-22 13:32:48

Judging History

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

  • [2024-10-22 13:32:48]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3628kb
  • [2024-10-22 13:32:47]
  • 提交

answer

#include<iostream>
#include<string.h>
#include<algorithm>
#include<math.h>
#include<vector>
#include<map>
#include<queue>
#include<set> 
#include<stack>
#include<bitset>
#include<unordered_map>
#include<iomanip>
#include<cassert>
#include<array>
#define fi first
#define se second
#define endl '\n'
#define pb push_back
#define ep emplace_back 
#define debug(x) cout<<x<<'\n'
#define RES cout<<res<<'\n'
#define ANS cout<<ans<<'\n'
#define YES	cout<<"YES"<<'\n'
#define NO cout<<"NO"<<'\n'
#define Yes	cout<<"Yes"<<'\n'
#define No cout<<"No"<<'\n'
#define me(a,x) memset(a,x,sizeof(a))
#define L(i,j,k) for(int i=(j);i<=(k);++i)
#define R(i,j,k) for(int i=(j);i>=(k);--i)
#define r23 cout<<233<<endl;return;
#define int long long 
using namespace std;
typedef long long ll;
typedef pair<int,int> PII;
typedef pair<PII,int> PIII;
typedef unsigned long long ull;
const int N=1e5+5,P=131,mod=998244353;
int qmi(int a,int b){
	int res=1;
	while(b){
		if(b&1)res=res*a%mod;
		a=a*a%mod;
		b>>=1;
	}
	return res;
}
int inv(int a,int b){
	return qmi(a,b-2);
}

void solve(){
	int n,a,b;
	cin>>n>>a>>b;
	n=3*(n-1);
	a--,b--;
	n-=(a+b);
	L(i,1,n)cout<<'L';
	L(i,1,a)cout<<'D';
	L(i,1,b)cout<<'R'; 
}
signed main(){
	ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
	int T=1;
	//cin>>T;
	while(T--){
		solve();
	}
}

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3616kb

input:

3 3 3

output:

LLDDRR

result:

ok n=3, x=3, y=3

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3628kb

input:

4 3 2

output:

LLLLLLDDR

result:

wrong answer Failed