Submission #55767626


Source Code Expand

#define _CRT_SECURE_NO_WARNINGS
#pragma comment(linker, "/stack:16777216")
#include <string>
#include <vector>
#include <map>
#include <list>
#include <iterator>
#include <set>
#include <queue>
#include <iostream>
#include <sstream>
#include <stack>
#include <deque>
#include <cmath>  
#include <memory.h>
#include <cstdlib>
#include <cstdio>
#include <cctype>
#include <algorithm>
#include <utility>
#include <time.h>
#include <bitset>
#include <random>
using namespace std;

#define FOR(i, a, b) for(int i = (a); i < (b); ++i)
#define RFOR(i, b, a) for(int i = (b) - 1; i >= (a); --i)
#define ITER(it, a) for (__typeof(a.begin()) it = a.begin(); it != a.end(); it++)
#define FILL(A,value) memset(A,value,sizeof(A))

#define ALL(V) V.begin(), V.end()
#define SZ(V) (int)V.size()
#define PB push_back
#define MP make_pair
const double PI=acos(-1.0);

typedef long long Int;
typedef long long LL;
typedef unsigned long long UINT;
typedef vector <int> VI;
typedef pair <int, int> PII;
typedef pair <double, double> PDD;

const int INF = 1000 * 1000 * 1000 + 7;
const LL LINF = INF * (LL) INF;

const int MAX = 100007;
const int MAXK = 51;
const int MAX2 = 24000000;
const int LEN = 21;
const int BASE = 1000000000;


int main()
{
  int x;
  cin >> x;

  int y = x/100*100+100;

  cout << y-x << endl;

  
  return 0;
}

Submission Info

Submission Time
Task A - Piling Up
User witua
Language C++ 20 (gcc 12.2)
Score 100
Code Size 1382 Byte
Status AC
Exec Time 1 ms
Memory 3508 KiB

Compile Error

Main.cpp:2: warning: ignoring ‘#pragma comment ’ [-Wunknown-pragmas]
    2 | #pragma comment(linker, "/stack:16777216")
      | 

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 14
Set Name Test Cases
Sample example_00.txt, example_01.txt
All example_00.txt, example_01.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt
Case Name Status Exec Time Memory
example_00.txt AC 1 ms 3460 KiB
example_01.txt AC 1 ms 3508 KiB
hand_00.txt AC 1 ms 3508 KiB
hand_01.txt AC 1 ms 3492 KiB
hand_02.txt AC 1 ms 3452 KiB
hand_03.txt AC 1 ms 3492 KiB
hand_04.txt AC 1 ms 3456 KiB
hand_05.txt AC 1 ms 3508 KiB
hand_06.txt AC 1 ms 3496 KiB
random_00.txt AC 1 ms 3460 KiB
random_01.txt AC 1 ms 3432 KiB
random_02.txt AC 1 ms 3448 KiB
random_03.txt AC 1 ms 3444 KiB
random_04.txt AC 1 ms 3492 KiB