結果
問題 | No.1415 100の倍数かつ正整数(1) |
ユーザー |
|
提出日時 | 2021-03-05 21:50:59 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 1,198 bytes |
コンパイル時間 | 2,739 ms |
コンパイル使用メモリ | 195,528 KB |
最終ジャッジ日時 | 2025-01-19 10:53:16 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
#include<bits/stdc++.h> using namespace std; using ll = long long; #define rep(i,n) for (ll i = 0; i < (ll(n)); ++i) #define All(v) (v).begin(),(v).end() #define rall(v) (v).rbegin(),(v).rend() //reverse #define strall(v) (v).cbegin(),(v).cend() //const_itterator #define IN(a, b, x) (a<=x&&x<b) using namespace std; using ll = long long; using Pair = pair<int,int>; using Graph = vector<vector<ll>>; template<typename T> using min_priority_queue = priority_queue<T, vector<T>, greater<T>>; template<typename t, typename u, typename Comp=less<>> bool chmax(t& xmax, const u& x, Comp comp={}) { if(comp(xmax, x)) { xmax = x; return true; } return false;} template<typename t, typename u, typename Comp=less<>> bool chmin(t& xmin, const u& x, Comp comp={}) { if(comp(x, xmin)) { xmin = x; return true;} return false;} const int INF = 1e9; const ll infl = ll(1e18)+5; vector<ll> l(10); vector<pair<int,int>> now(4,pair<int,int>(0,0)) ;//グループわけ,<全長,本数> int N,X[3] = {0}; ll res = 1e12; int main(){ string s;cin >> s; if(s.size() < 3) {cout << 0 << endl;return 0;} s.pop_back(); s.pop_back(); if(s[0] == '-') cout << 0 << endl; else cout << s << endl; }