提出 #20299489


ソースコード 拡げる

#include <bits/stdc++.h>
#define ll long long
#define sz(x) (int)(x).size()
using namespace std;
//mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
//uniform_int_distribution<int>(1000,10000)(rng)

ll binpow(ll a, ll b)
{
    ll res = 1;
    while (b > 0)
    {
        if (b & 1)
            res = res * a;
        a = a * a;
        b >>= 1;
    }
    return res;
}

ll gcd(ll a,ll b)
{
    if (b==0) return a;
    return gcd(b,a%b);
}

string to_upper(string a)
{
    for (int i=0;i<(int)a.size();++i) if (a[i]>='a' && a[i]<='z') a[i]-='a'-'A';
    return a;
}
 
string to_lower(string a)
{
    for (int i=0;i<(int)a.size();++i) if (a[i]>='A' && a[i]<='Z') a[i]+='a'-'A';
    return a;
}

int main()
{
    ios_base::sync_with_stdio(0); cin.tie(0);
    int n;
    cin>>n;
    cout<<100-(n%100);
    return 0;
}

提出情報

提出日時
問題 A - Star
ユーザ ScarletS
言語 C++ (GCC 9.2.1)
得点 100
コード長 877 Byte
結果 AC
実行時間 4 ms
メモリ 3648 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 2
AC × 17
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
random_01.txt AC 3 ms 3620 KiB
random_02.txt AC 3 ms 3512 KiB
random_03.txt AC 3 ms 3524 KiB
random_04.txt AC 2 ms 3528 KiB
random_05.txt AC 2 ms 3524 KiB
random_11.txt AC 2 ms 3604 KiB
random_12.txt AC 2 ms 3528 KiB
random_13.txt AC 2 ms 3524 KiB
random_14.txt AC 2 ms 3640 KiB
random_15.txt AC 4 ms 3608 KiB
random_16.txt AC 2 ms 3484 KiB
random_21.txt AC 2 ms 3516 KiB
random_22.txt AC 2 ms 3568 KiB
random_23.txt AC 3 ms 3476 KiB
random_24.txt AC 2 ms 3648 KiB
sample_01.txt AC 2 ms 3520 KiB
sample_02.txt AC 2 ms 3540 KiB