QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#134939#6641. XOR Dicelittle_brush#WA 0ms3772kbC++14445b2023-08-05 10:10:292023-08-05 10:10:32

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-08-05 10:10:32]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3772kb
  • [2023-08-05 10:10:29]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;

inline int read()
{
	int x=0,f=1;
	char c=getchar();
	while(c<'0' || c>'9')
	{
		if(c=='-') f=-1;
		c=getchar();
	}
	while(c>='0' && c<='9')
	{
		x=x*10+c-'0';
		c=getchar();
	}
	return x*f;
}

int main()
{
	int n=read(), d=read();
	for(int i=1;i<=n;i++)
	{
		int k1=(i-1)*6+1;
		int k2=i*6;
		for(int j=k1;j<=k2;j++) printf("%d ",j*d);
		printf("\n");
	}
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 2

output:

2 4 6 8 10 12 
14 16 18 20 22 24 
26 28 30 32 34 36 

result:

ok Correct answer

Test #2:

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

input:

100 60

output:

60 120 180 240 300 360 
420 480 540 600 660 720 
780 840 900 960 1020 1080 
1140 1200 1260 1320 1380 1440 
1500 1560 1620 1680 1740 1800 
1860 1920 1980 2040 2100 2160 
2220 2280 2340 2400 2460 2520 
2580 2640 2700 2760 2820 2880 
2940 3000 3060 3120 3180 3240 
3300 3360 3420 3480 3540 3600 
3660 37...

result:

wrong answer Invalid output