QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#766516#1. I/O TestASnown0 0ms0kbC++171.6kb2024-11-20 17:35:132024-11-20 17:35:13

Judging History

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

  • [2024-11-20 17:35:13]
  • 评测
  • 测评结果:0
  • 用时:0ms
  • 内存:0kb
  • [2024-11-20 17:35:13]
  • 提交

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: 0
input_test Judgement Failed

Test #1:

score: 0
input_test Judgement Failed

input:

10000000
408895990 847027218 566624487 602689289 384334069 399100645 209339479 411753023 116925083 363562625 379473134 348097789 145364600 712018329 784022474 732969811 897039872 294444532 210871734 914585234 923106640 856605548 507095437 691394946 748403874 284492507 164365263 654528779 748841476 8...

output:


result:


Subtask #2:

score: 0
Skipped