QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#479092#1. I/O Testdaydreamwarrior100 83ms4712kbC++171.4kb2024-07-15 14:55:332024-07-15 14:55:33

Judging History

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

  • [2024-07-15 14:55:33]
  • 评测
  • 测评结果:100
  • 用时:83ms
  • 内存:4712kb
  • [2024-07-15 14:55:33]
  • 提交

config.txt

10000000 0

input_test

#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;

namespace fastio{
    struct{char buf[1048576],*p=buf;
	operator char(){return p==buf+sizeof(buf)?cin.read(buf,1048576),*(p=buf)++:*p++;}
	template<typename T>operator T(){T x=0;char f=0,c=*this;
		while(c<'0'||c>'9'){if(c=='-')f=1;c=*this;}
		while(c>='0'&&c<='9'){x=x*10+(c^48);c=*this;}
		return f?-x:x;
	}}in;short stk[39],tp;
    template<typename T>void out(T x,char c=0){
        if(x<0)putchar('-'),x=-x;
        do stk[tp++]=x%10;while(x/=10);
        while(tp)putchar(char(stk[--tp]^48));
        if(c)putchar(c);
    }
}using fastio::in;using fastio::out;

int main(){
	int n = in;
	long long ans = 0;
	for(int k=1;k<=n;k++)
		ans += (int)in;
	out(ans);
    return 0;
}

output_test

#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;

namespace fastio{
    struct{template<typename T>operator T(){
        T x=0;char f=0,c=getchar();
        while(c<'0'||c>'9'){if(c=='-')f=1;c=getchar();}
        while(c>='0'&&c<='9'){x=x*10+(c^48);c=getchar();}
        return f?-x:x;
    }}in;int stk[39],tp;
    template<typename T>void out(T x,char c=0){
        if(x<0)putchar('-'),x=-x;
        do stk[tp++]=x%10;while(x/=10);
        while(tp)putchar(stk[--tp]^48);
        if(c)putchar(c);
    }
}using fastio::in;using fastio::out;

int main(){
	int n = in;
	for(int k=1;k<=n;k++)
		out(100000000,' ');
	return 0;
}

详细

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 83ms
memory: 4712kb

input:

10000000
267559760 179120387 291383493 320328163 506113672 164000244 101812078 208396917 362853013 540103852 472025002 983407583 274181564 355722707 695785216 125937524 770819114 220419095 320203796 334110352 426001700 277823136 373951952 116604170 232832686 477187354 283505481 467252147 940694303 1...

output:

5499052404714787

result:

points 1.0 input test passed

Subtask #2:

score: 0
Skipped