Submission #20343316


Source Code Expand

#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define fore(i,a) for(auto &i:a)
#define all(x) (x).begin(),(x).end()
//#pragma GCC optimize ("-O3")
using namespace std;
void _main(); int main() { cin.tie(0); ios::sync_with_stdio(false); _main(); }
typedef long long ll; const int inf = INT_MAX / 2; const ll infl = 1LL << 60;
template<class T>bool chmax(T& a, const T& b) { if (a < b) { a = b; return 1; } return 0; }
template<class T>bool chmin(T& a, const T& b) { if (b < a) { a = b; return 1; } return 0; }
//---------------------------------------------------------------------------------------------------
/*---------------------------------------------------------------------------------------------------
            ∧_∧
      ∧_∧  (´<_` )  Welcome to My Coding Space!
     ( ´_ゝ`) /  ⌒i     @hamayanhamayan0
    /   \     | |
    /   / ̄ ̄ ̄ ̄/  |
  __(__ニつ/     _/ .| .|____
     \/____/ (u ⊃
---------------------------------------------------------------------------------------------------*/














int X;
//---------------------------------------------------------------------------------------------------
void _main() {
	cin >> X;
	int ans = 100 - (X % 100);
	cout << ans << endl;
}





Submission Info

Submission Time
Task A - Star
User hamayanhamayan
Language C++ (GCC 9.2.1)
Score 100
Code Size 1482 Byte
Status AC
Exec Time 6 ms
Memory 3616 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 17
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, random_21.txt, random_22.txt, random_23.txt, random_24.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
random_01.txt AC 6 ms 3616 KiB
random_02.txt AC 2 ms 3504 KiB
random_03.txt AC 3 ms 3540 KiB
random_04.txt AC 2 ms 3504 KiB
random_05.txt AC 2 ms 3508 KiB
random_11.txt AC 2 ms 3548 KiB
random_12.txt AC 2 ms 3616 KiB
random_13.txt AC 2 ms 3504 KiB
random_14.txt AC 2 ms 3616 KiB
random_15.txt AC 2 ms 3572 KiB
random_16.txt AC 2 ms 3520 KiB
random_21.txt AC 2 ms 3612 KiB
random_22.txt AC 2 ms 3488 KiB
random_23.txt AC 2 ms 3508 KiB
random_24.txt AC 4 ms 3504 KiB
sample_01.txt AC 1 ms 3520 KiB
sample_02.txt AC 1 ms 3584 KiB