結果
| 問題 |
No.1329 Square Sqsq
|
| コンテスト | |
| ユーザー |
penguinman
|
| 提出日時 | 2020-09-18 05:12:46 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 278 bytes |
| コンパイル時間 | 1,666 ms |
| コンパイル使用メモリ | 166,236 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-22 07:36:34 |
| 合計ジャッジ時間 | 2,490 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
#include<bits/stdc++.h>
using std::cin;
using std::cout;
using std::endl;
using std::string;
int main(){
string str; cin>>str;
int N=str.size();
string S;
S+='1';
for(int i=0;i<1e5;i++) S+='0';
assert((1<=N&&N<=1e5)||str==S);
cout<<(N-1)/2+1<<endl;
}
penguinman