QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#120085#6641. XOR Dicezjy0001WA 1ms3724kbC++17777b2023-07-06 13:22:142023-07-06 13:22:18

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-06 13:22:18]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3724kb
  • [2023-07-06 13:22:14]
  • 提交

answer

#include<bits/stdc++.h>
#define LL long long
#define LLL __int128
#define ldb long double
using namespace std;
typedef pair<int,int> PII;
#define gc() getchar()
#define pc(x) putchar(x)
template<class T>inline T read(){
    T x=0;char ch;bool f=1;
    while(!isdigit(ch=gc()))if(ch=='-')f^=1;
    do x=(x<<1)+(x<<3)+(ch^48);while(isdigit(ch=gc()));
    return f?x:-x;
}
#define read() read<int>()
int n,d;
signed main(){
#define mytest
#ifndef mytest
    freopen("dice.in","r",stdin);
    freopen("dice.out","w",stdout);
#endif
    n=read(),d=read();
    int A=d,B=d<<6,C=d<<12;
    puts("Yes");
    for(int i=1;i<=n;++i)
        printf("%d %d %d %d %d %d\n",A,B,C,A|B,A|C,B|C);
    cerr<<clock()*1.0/CLOCKS_PER_SEC<<endl;
    return 0;
}
/*

*/

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3724kb

input:

3 2

output:

Yes
2 128 8192 130 8194 8320
2 128 8192 130 8194 8320
2 128 8192 130 8194 8320

result:

wrong output format Expected integer, but "Yes" found