QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#766508#1. I/O TestASnown100 271ms3656kbC++171.7kb2024-11-20 17:33:182024-11-20 17:33:26

Judging History

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

  • [2024-11-20 17:33:26]
  • 评测
  • 测评结果:100
  • 用时:271ms
  • 内存:3656kb
  • [2024-11-20 17:33:18]
  • 提交

config.txt

10000000 0

input_test

#include<bits/stdc++.h>
#define file(F) freopen(#F".in","r",stdin),freopen(#F".out","w",stdout)
#define lowbit(x) ((x)&-(x))
#define ALL(x) x.begin(),x.end()
#define debug(...) fprintf(stderr,__VA_ARGS__)
#define popcount(x) (__builtin_popcount((x)))
using namespace std;
using ll=long long;
using uint=uint32_t;
template<typename T>
inline bool Max(T &x,T y) { return std::less<T>()(x,y)&&(x=y,true); }
template<typename T>
inline bool Min(T &x,T y) { return std::less<T>()(y,x)&&(x=y,true); }
void Solve();
namespace FastIO {
// #ifdef ONLINE_JUDGE
// #include<sys/mman.h>
// static const char *_read_ptr = (const char*)mmap(nullptr,0x7fffffff,1,2,0,0);
// static const char *_write_ptr = (const char*)mmap(nullptr,0x7fffffff,2,2,0,0);
// #define __getc() (*_read_ptr++)
// #define __putc(c) (*_write_ptr++=(c))
// #else
#define __getc() (getchar())
#define __putc(c) (putchar(c))
// #endif
inline void read(int32_t &x) {
   static char ch; bool sg=false; x=0;
   while(!isdigit(ch=__getc())) sg^=ch=='-';
   for(;isdigit(ch);ch=__getc()) x=(x<<3)+(x<<1)+(ch&0xf);
   sg&&(x=~x+1);
}
inline void read(uint32_t &x) {
   static char ch; x=0;
   while(!isdigit(ch=__getc())) ;
   for(;isdigit(ch);ch=__getc()) x=(x<<3)+(x<<1)+(ch&0xf);
}
inline void write(int64_t x) {
   if(x<0) __putc('-'),x=-x;
   if(x>9) write(x/10),x%=10;
   __putc(x+'0');
}
}
using FastIO::read;
using FastIO::write;
signed main() {
#ifndef ONLINE_JUDGE
#endif
   cin.tie(nullptr)->sync_with_stdio(false);
   Solve();
}
void Solve() {
   int n; read(n);
   ll sum=0;
   for(int i=1;i<=n;i++) {
      int x; read(x);
      sum+=x;
   }
   write(sum);
}

output_test


详细

Subtask #1:

score: 100
Accepted

Test #1:

score: 100
Accepted
time: 271ms
memory: 3656kb

input:

10000000
843317039 971670627 889105265 955490886 812516135 758835125 960239372 752573886 878507417 164398722 913259647 580777969 820197516 254954594 623238279 889496824 288298526 374409350 141959531 329844005 190664100 211001575 328567647 600240169 759171275 156551036 468979888 375505881 124918684 6...

output:

5500013754359512

result:

points 1.0 input test passed

Subtask #2:

score: 0
Skipped