QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#479073#1. I/O Testdaydreamwarrior100 91ms7588kbC++171.5kb2024-07-15 14:43:452024-07-15 14:43:45

Judging History

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

  • [2024-07-15 14:43:45]
  • 评测
  • 测评结果:100
  • 用时:91ms
  • 内存:7588kb
  • [2024-07-15 14:43:45]
  • 提交

config.txt

10000000 0

input_test

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

namespace fastio{
    struct{char buf[1024*1024*4],*p=buf;
	operator char(){if(p==buf+sizeof(buf))cin.read(buf,sizeof(buf)),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;
    inline void out(char c){putchar_unlocked(c);}
    template<typename T>inline void out(T x,char c=0){
        if(x<0)out('-'),x=-x;
        do stk[tp++]=x%10;while(x/=10);
        while(tp)out(char(stk[--tp]^48));
        if(c)out(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: 91ms
memory: 7588kb

input:

10000000
506133879 202572009 919838862 334256368 658734577 512730796 469946758 732936449 286295502 935561149 536854236 772524099 941026029 334254883 535354435 514804118 408060806 601308273 658939071 444882528 443246893 258199111 117910825 112099895 893568834 900201166 703771026 952460719 920553251 8...

output:

5499071543714139

result:

points 1.0 input test passed

Subtask #2:

score: 0
Skipped