QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#766515#1. I/O TestASnown100 64ms101156kbC++171.6kb2024-11-20 17:34:222024-11-20 17:34:27

Judging History

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

  • [2024-11-20 17:34:27]
  • 评测
  • 测评结果:100
  • 用时:64ms
  • 内存:101156kb
  • [2024-11-20 17:34:22]
  • 提交

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())
#endif
#define __putc(c) (putchar(c))
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: 64ms
memory: 101156kb

input:

10000000
780603852 382415426 882402227 708639869 745875190 568610076 603003222 148328574 708798674 118454211 654065732 187088935 208161224 756010441 271797682 529722550 720558983 770295026 917997088 161349340 699106120 717738065 136756153 391017630 379755537 355544110 349919497 353700761 686771825 9...

output:

5499861085763121

result:

points 1.0 input test passed

Subtask #2:

score: 0
Skipped