QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#409623#1. I/O Testqwes200 ✓87ms7444kbC++141.6kb2024-05-12 13:25:192024-05-12 13:25:20

Judging History

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

  • [2024-05-12 13:25:20]
  • 评测
  • 测评结果:200
  • 用时:87ms
  • 内存:7444kb
  • [2024-05-12 13:25:19]
  • 提交

config.txt

10000000 10000000

input_test

#include<bits/stdc++.h>
using namespace std;
#define endl '\n'
#define pb push_back
#define fst first
#define scd second
#define rep(i,s,e) for(int i=s;i<=e;i++)
#define dep(i,s,e) for(int i=s;i>=e;i--)

using ll=long long;
using pii=pair<int,int>;
using pll=pair<ll,ll>;

const int maxn=2e5+10;

ll a[maxn];
// #define getchar() (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, 1 << 21, stdin), p1 == p2) ? EOF : *p1++)
char buf[1 << 23], *p1 = buf, *p2 = buf;
inline ll read()
{
    ll x = 0;
    bool w = 0;
    char ch = (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, 1 << 21, stdin), p1 == p2) ? EOF : *p1++);
    while ((ch < '0' || ch > '9') && (ch ^ 45) && (ch ^ -1))
        ch = (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, 1 << 21, stdin), p1 == p2) ? EOF : *p1++);
    (!(ch ^ 45) && (w = 1, (ch = (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, 1 << 21, stdin), p1 == p2) ? EOF : *p1++))));
    while (ch >= '0' && ch <= '9') {
        x = (x << 3) + (x << 1) + (ch ^ 48);
        ch = (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, 1 << 21, stdin), p1 == p2) ? EOF : *p1++);
    }
    w && (x = -x);
    return x;
}
void solve(){
	int n=read();
	ll ans=0;
	rep(i,1,n) ans+=read();
	cout<<ans;
}
int main(){
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	int t=1;
	//cin>>t;
	while(t--) solve();
    return 0;
}

output_test

#include<cstdio>
using namespace std;
char obuf[1<<20], *O = obuf;
int cnt;char ch[]=" 000000001";
int main(){
    int l=1e7;
    cnt=10;
   	while(cnt--) *O++=ch[cnt];
	while(l--) fwrite(obuf, 10, 1, stdout);
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 87ms
memory: 7444kb

input:

10000000
561316778 175031175 379642378 867037020 105772848 344494695 858057749 187744706 425226624 505185848 346255407 322118626 262644827 877845394 628474017 407181551 361583585 249948820 443276403 389875757 918891495 516632555 171235791 301841435 987871140 452725158 236634459 720331755 298571685 2...

output:

5500495704872846

result:

points 1.0 input test passed

Subtask #2:

score: 100
Accepted

Test #2:

score: 100
Accepted
time: 78ms
memory: 1224kb

input:

10000000

output:

100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 ...

result:

points 1.0 output test passed