結果

問題 No.1415 100の倍数かつ正整数(1)
ユーザー Ryuki87241978
提出日時 2022-02-23 21:23:49
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 899 bytes
コンパイル時間 2,130 ms
コンパイル使用メモリ 193,656 KB
最終ジャッジ日時 2025-01-28 01:31:51
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <vector>
#include <iostream>
#include <map>
#include <string>
#include <cmath>
#include <algorithm>
#include <queue>
#include<math.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repe(i,x,n) for(int i=x; i<(n); ++i)
using ll = long long;
using P = pair<int, int>;
#define pai 3.1415926535897932384
#define INF 100100100
#define _GLIBCXX_DEBUG
#define All(a) (a).begin(),(a).end()
#define rAll(a) (a).rbegin(),(a).rend()
#define divide 998244353

int main() {
    
    string S;
    cin >> S;
    if(S[0] == '-') {
        cout << 0 << endl;
        return 0;
    }
    int N = S.size();
    if(N==1 || N==2) {
        cout << 0 << endl;
        return 0;
    }
    rep(i,N-2) {
        if(i==0) {
            cout << S[i];
        }
        else {
            cout << S[i];
        }
    }
    cout << endl;
    return 0;
    
}
0