QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#239656#8981. Kangaroo PuzzleBbaka_WA 0ms3640kbC++20677b2023-11-04 22:16:572023-11-04 22:16:57

Judging History

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

  • [2024-11-05 18:07:55]
  • hack成功,自动添加数据
  • (/hack/1130)
  • [2023-11-04 22:16:57]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3640kb
  • [2023-11-04 22:16:57]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
void solve(void)
{
    int n,m;
    cin>>n>>m;
    string s;
    for(int i=1;i<=n;i++)
    {
        cin>>s;
    }
    s="";
    int rev=0,len=0;
    for(int i=0;i<50000;i+=40)
    {
        for(int j=1;j<=20;j++)
        {
            len+=2;
            if(rev)
                s+="RD";
            else
                s+="LD";
        }
        rev^=1;
    }
    assert(s.length()<=50000);
    cout<<s<<endl;
}
int main(void)
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int t=1;
    while(t--)
    {
        solve();
    }
    return 0;
}

详细

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3640kb

input:

4 4
1111
1001
1001
1110

output:

LDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDRDRDRDRDRDRDRDRDRDRDRDRDRDRDRDRDRDRDRDRDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDRDRDRDRDRDRDRDRDRDRDRDRDRDRDRDRDRDRDRDRDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDRDRDRDRDRDRDRDRDRDRDRDRDRDRDRDRDRDRDRDRDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDLDRDRDRDRDRDRDRDRDRDRD...

result:

wrong answer WA