QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#440527 | #1. I/O Test | LDM0116 | 200 ✓ | 214ms | 3628kb | C++14 | 2.3kb | 2024-06-13 20:10:03 | 2024-06-13 20:10:03 |
Judging History
config.txt
10000000 10000000
input_test
#include<bits/stdc++.h>
#define mkp make_pair
#define ll long long
#define ull unsigned long long
#define pb emplace_back
#define sort stable_sort
#define iinf 0x3f3f3f3f
#define linf 0x3f3f3f3f3f3f3f3f
#define lowbit(x) x&(-x)
#define pii pair<int,int>
#define i128 __int128
using namespace std;
namespace io{
#define int long long
const int B=10;
int read(){
int x=0,f=1;char c=getchar();
while(!isdigit(c)){if(c=='-') f=-1;c=getchar();}
while(isdigit(c)){x=x*B+c-'0';c=getchar();}
return x*f;
}
void print(int x){
if(x<B){putchar(x+'0');return;}
print(x/B);putchar(x%B+'0');
}
#undef int
}using namespace io;
namespace smiling{
int n,a;
ll s;
int main(){
n=read();
for(int i=1;i<=n;i++){
a=read();
s+=a;
}
print(s);
return 0;
}
}
int main(){
#ifdef ONLINE_JUDGE
#else
freopen("1.in","r",stdin);
freopen("1.out","w",stdout);
double s=clock();
#endif
ios::sync_with_stdio(false);
cin.tie(0);
smiling::main();
#ifdef ONLINE_JUDGE
#else
double t=clock();
printf("\n\ntime:%.6lf",(t-s)/1000);
#endif
return 0;
}
output_test
#include<bits/stdc++.h>
#define mkp make_pair
#define ll long long
#define ull unsigned long long
#define pb emplace_back
#define sort stable_sort
#define iinf 0x3f3f3f3f
#define linf 0x3f3f3f3f3f3f3f3f
#define lowbit(x) x&(-x)
#define pii pair<int,int>
#define i128 __int128
using namespace std;
namespace io{
#define int long long
const int B=10;
int read(){
int x=0,f=1;char c=getchar();
while(!isdigit(c)){if(c=='-') f=-1;c=getchar();}
while(isdigit(c)){x=x*B+c-'0';c=getchar();}
return x*f;
}
void print(int x){
if(x<B){putchar(x+'0');return;}
print(x/B);putchar(x%B+'0');
}
#undef int
}using namespace io;
namespace smiling{
int n;
int main(){
n=read();
for(int i=1;i<=n;i++){
print(100000000),putchar(' ');
}
return 0;
}
}
int main(){
#ifdef ONLINE_JUDGE
#else
freopen("1.in","r",stdin);
freopen("1.out","w",stdout);
double s=clock();
#endif
ios::sync_with_stdio(false);
cin.tie(0);
smiling::main();
#ifdef ONLINE_JUDGE
#else
double t=clock();
printf("\n\ntime:%.6lf",(t-s)/1000);
#endif
return 0;
}
详细
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 211ms
memory: 3564kb
input:
10000000 519250731 137206517 465502754 901338476 441773928 612295720 103697285 178541502 982655246 319323376 664500010 618547648 783235442 155171279 625331715 891837424 839978191 559381902 613466410 593411922 682537856 518299433 285325603 839220156 304186717 439016741 743588893 306717827 821886224 8...
output:
5499179763651203
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 214ms
memory: 3628kb
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