結果
問題 | No.1415 100の倍数かつ正整数(1) |
ユーザー |
![]() |
提出日時 | 2023-06-19 18:33:44 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 284 bytes |
コンパイル時間 | 1,955 ms |
コンパイル使用メモリ | 192,884 KB |
最終ジャッジ日時 | 2025-02-14 23:00:25 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int main(){ string S; cin >> S; if (S[0] == '-') cout << 0 << endl; else{ if (S.size() <= 2) cout << 0 << endl; else cout << S.substr(0, S.size()-2) << endl; } return 0; }