結果

問題 No.1415 100の倍数かつ正整数(1)
ユーザー nao109
提出日時 2021-05-23 01:02:34
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 340 bytes
コンパイル時間 1,190 ms
コンパイル使用メモリ 159,984 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-11 01:20:27
合計ジャッジ時間 2,025 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
    string s;
    cin >> s;
    int ss = s.size();
    if(s[0]!='-'){
        if(ss>=3){
            for(int i=0; i<ss-3; i++) cout << s[i];
            char ans = s[ss-3];
            cout << ans << endl;
        }
        else cout << 0 << endl;
    }
    else cout << 0 << endl;
}
0