QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#479080#1. I/O Testdaydreamwarrior100 94ms4644kbC++171.5kb2024-07-15 14:47:302024-07-15 14:47:31

Judging History

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

  • [2024-07-15 14:47:31]
  • 评测
  • 测评结果:100
  • 用时:94ms
  • 内存:4644kb
  • [2024-07-15 14:47:30]
  • 提交

config.txt

10000000 0

input_test

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

namespace fastio{
    struct{char buf[1024*1024],*p=buf;
	operator char(){if(p==buf+sizeof(buf))fread(buf,sizeof(char),sizeof(buf),stdin),p=buf;return *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: 94ms
memory: 4644kb

input:

10000000
841874681 351737306 609177695 462931537 821126699 798572255 955937444 180322764 323057886 155576642 302748300 609758319 756542723 762368746 819237935 616519235 469479585 156185037 831987814 756819916 978028452 937708856 786682430 621525193 892333284 567645212 252970809 239169853 131035826 1...

output:

5501519660438152

result:

points 1.0 input test passed

Subtask #2:

score: 0
Skipped