QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#120061 | #6641. XOR Dice | cmkakioi | WA | 1ms | 3616kb | C++14 | 519b | 2023-07-06 12:59:02 | 2023-07-06 12:59:04 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
inline char gc()
{
static char ibuf[1<<15],*ip1,*ip2;
if(ip2==ip1) ip2=(ip1=ibuf)+fread(ibuf,1,1<<15,stdin);
return *ip1++;
}
template<typename Tp> inline void read(Tp &x)
{
char c=gc(); x=0;
for(;!isdigit(c);c=gc());
for(;isdigit(c);c=gc()) x=(x<<3)+(x<<1)+c-48;
}
int n,m;
signed main()
{
read(n),read(m);
puts("Yes");
for(int i=1;i<=n;i++)
{
int a=(m<<6),b=(m<<12);
printf("%d %d %d %d %d %d\n",0,a|b,a,a|m,b,b|m);
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3616kb
input:
3 2
output:
Yes 0 8320 128 130 8192 8194 0 8320 128 130 8192 8194 0 8320 128 130 8192 8194
result:
wrong output format Expected integer, but "Yes" found