QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#699283#9546. Recover Statisticsucup-team4863#WA 0ms1464kbC++14850b2024-11-02 08:12:162024-11-02 08:12:16

Judging History

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

  • [2024-11-02 08:12:16]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:1464kb
  • [2024-11-02 08:12:16]
  • 提交

answer

// created:  2024-11-02 08:11:30
#include<cstdio>
#include<cctype>
#include<algorithm>
#define F(i,l,r) for(int i=(l),i##_end=(r);i<i##_end;++i)
#define I128 //||is_same<T,__int128_t>::value||is_same<T,__uint128_t>::value
using namespace std;
template<typename T>enable_if_t<is_integral<T>::value I128,void> readmain(T &x)
{
	bool neg=false;int c=getchar();
	for(;!isdigit(c);c=getchar())if(c=='-')neg=true;
	for(x=0;isdigit(c);c=getchar())x=(T)(10*x+(c-'0'));
	if(neg)x=-x;
}
template<typename T>T& read(T &x){readmain(x);return x;}
template<typename T,typename ...Tr>void read(T &x,Tr&... r){readmain(x);read(r...);}
int a,b,c;
int main()
{
	read(a,b,c);
	int i=0;
	for(;i<50;++i)printf("%d ",a);
	for(;i<95;++i)printf("%d ",b);
	for(;i<99;++i)printf("%d ",c);
	for(;i<100;++i)printf("%d ",c+1);
	puts("");
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

50
95
99

output:

50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 95 99 99 99 99 100 

result:

wrong answer Integer parameter [name=n] equals to 50, violates the range [100, 100000]