結果
問題 | No.1329 Square Sqsq |
ユーザー | define |
提出日時 | 2021-01-08 22:05:23 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 797 bytes |
コンパイル時間 | 1,678 ms |
コンパイル使用メモリ | 191,292 KB |
最終ジャッジ日時 | 2025-01-17 12:08:35 |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
#line 2 "/home/defineprogram/Desktop/Library/template/template.cpp" #include <bits/stdc++.h> using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < n; i++) #define REP(i, n) for (int i = 1; i < n; i++) #define rev(i, n) for (int i = n - 1; i >= 0; i--) #define all(v) v.begin(), v.end() #define P pair<ll, ll> #define len(s) (ll) s.size() template <class T, class U> inline bool chmin(T &a, U b) { if (a > b) { a = b; return true; } return false; } template <class T, class U> inline bool chmax(T &a, U b) { if (a < b) { a = b; return true; } return false; } constexpr ll inf = 3e18; #line 2 "main.cpp" int main() { cin.tie(0); ios::sync_with_stdio(false); string S;cin>>S; cout<<(len(S)+1)/2<<"\n"; }