結果
| 問題 |
No.1415 100の倍数かつ正整数(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-05 21:36:28 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 454 bytes |
| コンパイル時間 | 1,940 ms |
| コンパイル使用メモリ | 194,288 KB |
| 最終ジャッジ日時 | 2025-01-19 10:43:32 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long ull;
mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
ll myRand(ll B) {
return (ull)rng() % B;
}
constexpr ll mod=1e9+7;
int main(){
cin.tie(nullptr);
ios::sync_with_stdio(false);
string s; cin >> s;
if(s[0]=='-' or s.size()<3){
printf("0\n");
}
else{
int n=s.size();
s=s.substr(0,n-2);
cout << s << endl;
}
}