結果

問題 No.1329 Square Sqsq
ユーザー GodowskyGodowsky
提出日時 2021-01-08 21:42:47
言語 C++17
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,426 bytes
コンパイル時間 1,987 ms
コンパイル使用メモリ 196,960 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-10 09:07:21
合計ジャッジ時間 2,851 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 2 ms
4,380 KB
testcase_11 AC 2 ms
4,380 KB
testcase_12 AC 2 ms
4,380 KB
testcase_13 AC 2 ms
4,380 KB
testcase_14 AC 2 ms
4,376 KB
testcase_15 AC 1 ms
4,376 KB
testcase_16 AC 1 ms
4,380 KB
testcase_17 AC 2 ms
4,376 KB
testcase_18 AC 2 ms
4,380 KB
testcase_19 AC 1 ms
4,380 KB
testcase_20 AC 1 ms
4,380 KB
testcase_21 AC 1 ms
4,380 KB
testcase_22 AC 1 ms
4,380 KB
testcase_23 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
// #include <atcoder/all>
using namespace std;
// using namespace atcoder;
using ll = long long;
using pll = pair<ll, ll>;
#define pb push_back
#define fi first
#define se second
#define all(x) (x).begin(),(x).end()
#define sz(x) ((long long)(x).size())
#define rep_(i, a_, b_, a, b, ...) for (long long i = (a), lim##i = (b); i < lim##i; i++)
#define rep(i, ...) rep_(i, __VA_ARGS__, __VA_ARGS__, 0, __VA_ARGS__)
#define V(type, name, ...) vector<type> name(__VA_ARGS__)
#define VV(type, name, h, ...) vector<vector<type>> name(h, vector<type>(__VA_ARGS__))
#define VVV(type, name, h, w, ...) vector<vector<vector<type>>> name(h, vector<vector<type>>(w, vector<type>(__VA_ARGS__)))
#ifndef dump
#define dump(...)
#define db(x)
#define vdb(v)
#define vvdb(v)
#define mdb(m)
#define sdb(s)
#endif
template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b; return 1;} return 0; }
template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b; return 1;} return 0; }
const ll LINF = 1LL << 60;
const int INF = INT_MAX;
const long double EPS = 1e-10;
const long double PI = acos(-1);
int di[] = {1, 0, -1, 0};
int dj[] = {0, 1, 0, -1};
// using mint = modint1000000007; const ll MOD = 1000000007;
// using mint = modint998244353; const ll MOD = 998244353;



int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);

    string S; cin >> S;
    cout << (sz(S) + 2 - 1) / 2 << endl;
    
}
0