QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#440510 | #1. I/O Test | LDM0116 | 200 ✓ | 211ms | 3704kb | C++14 | 2.3kb | 2024-06-13 19:53:16 | 2024-06-13 19:53:16 |
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 smiling{
int read(){
int x=0;
int f=1;
char c=getchar();
while(!isdigit(c)){
if(c=='-'){
f=-1;
}
c=getchar();
}
while(isdigit(c)){
x=x*10+c-'0';
c=getchar();
}
return x*f;
}
void print(ll x){
if(x<10){
putchar(x+'0');
return;
}
print(x/10);
putchar(x%10+'0');
}
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 smiling{
int read(){
int x=0;
int f=1;
char c=getchar();
while(!isdigit(c)){
if(c=='-'){
f=-1;
}
c=getchar();
}
while(isdigit(c)){
x=x*10+c-'0';
c=getchar();
}
return x*f;
}
void print(ll x){
if(x<10){
putchar(x+'0');
return;
}
print(x/10);
putchar(x%10+'0');
}
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;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 208ms
memory: 3704kb
input:
10000000 658421989 895864586 224577865 970827821 255785408 328880966 870215918 719813359 434811066 477611261 804217947 908569302 303796327 998811661 690067457 795570664 730730910 561930819 963768320 258308376 183877503 595996448 520717998 368315576 232634995 614427397 950529277 813184448 694902212 8...
output:
5499513940056726
result:
points 1.0 input test passed
Subtask #2:
score: 100
Accepted
Test #2:
score: 100
Accepted
time: 211ms
memory: 3560kb
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