QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#479074 | #1. I/O Test | daydreamwarrior | 100 | 97ms | 19916kb | C++17 | 1.5kb | 2024-07-15 14:44:19 | 2024-07-15 14:44:20 |
Judging History
config.txt
10000000 0
input_test
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
namespace fastio{
struct{char buf[1024*1024*16],*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;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 100
Accepted
Test #1:
score: 100
Accepted
time: 97ms
memory: 19916kb
input:
10000000 840170347 815356395 888880016 567730735 261004822 940818857 242506727 187790486 110679092 377633575 441937358 833947884 728114601 610668395 350341970 640389978 247595370 405267597 530711745 406088537 735917357 921795968 467165584 314808727 753740948 136933470 411570441 309373406 453740088 9...
output:
5501373693372227
result:
points 1.0 input test passed
Subtask #2:
score: 0
Skipped