QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#712611#9546. Recover Statisticsstarry#WA 0ms3656kbC++201.1kb2024-11-05 16:22:372024-11-05 16:22:38

Judging History

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

  • [2024-11-05 16:22:38]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3656kb
  • [2024-11-05 16:22:37]
  • 提交

answer

#include <bits/stdc++.h>
/*
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/hash_policy.hpp>
*/
using namespace std;

const double eps = 1e-10;
const double pi = 3.1415926535897932384626433832795;
const double eln = 2.718281828459045235360287471352;

#define f(i, a, b) for (int i = a; i <= b; i++)
#define scan(x) scanf("%d", &x)
#define mp make_pair
#define pb push_back
#define lowbit(x) (x&(-x))

#define fi first
#define se second
#define SZ(x) int((x).size())
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
#define summ(a) (accumulate(all(a), 0ll))

typedef unsigned long long ull;
typedef pair<int,int> pii;
typedef vector<int> vi;

using ll=long long;

ll a[3];
int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    f(i,1,3)cin>>a[i];
    cout<<"100\n";
    for(int i=1;i<=50;++i){
    	cout<<a[1]-(50-i)<<" ";
    }
    for(int i=1;i<=45;++i){
    	cout<<a[2]-(45-i)<<" ";
    }
    for(int i=1;i<=4;++i){
    	cout<<a[3]-(4-i)<<" ";
    }
    cout<<a[3]+1<<'\n';
    return 0;
}


詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3596kb

input:

50
95
99

output:

100
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100

result:

ok ok

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3656kb

input:

1
2
3

output:

100
-48 -47 -46 -45 -44 -43 -42 -41 -40 -39 -38 -37 -36 -35 -34 -33 -32 -31 -30 -29 -28 -27 -26 -25 -24 -23 -22 -21 -20 -19 -18 -17 -16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 -42 -41 -40 -39 -38 -37 -36 -35 -34 -33 -32 -31 -30 -29 -28 -27 -26 -25 -24 -23 -22 -21 -20 -19 -18 -17 -16 -...

result:

wrong answer Integer element pans[1] equals to -48, violates the range [1, 10^9]