結果

問題 No.1415 100の倍数かつ正整数(1)
ユーザー #leucobird
提出日時 2021-03-08 16:24:33
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 1,596 ms
コンパイル使用メモリ 167,268 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-10 03:17:19
合計ジャッジ時間 2,506 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(void)
{
  string s;
  cin >> s;
  if (s[0] == '-' || s.size() <= 2)
  {
    cout << 0 << endl;
  }
  else
  {
    s.erase(s.size() - 2);
    cout << s << endl;
  }
  return 0;
}
0