結果
| 問題 |
No.1415 100の倍数かつ正整数(1)
|
| コンテスト | |
| ユーザー |
tabae326
|
| 提出日時 | 2021-03-05 21:23:56 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 451 bytes |
| コンパイル時間 | 1,757 ms |
| コンパイル使用メモリ | 192,224 KB |
| 最終ジャッジ日時 | 2025-01-19 10:32:49 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
void solve() {
string s;
cin >> s;
if(s.front() == '-' || s.size() <= 2) {
cout << 0 << endl;
} else {
s.pop_back();
s.pop_back();
cout << s << endl;
}
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
solve();
return 0;
}
tabae326