結果
問題 |
No.1329 Square Sqsq
|
ユーザー |
![]() |
提出日時 | 2020-11-03 07:06:05 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 377 bytes |
コンパイル時間 | 1,595 ms |
コンパイル使用メモリ | 168,436 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-22 08:36:30 |
合計ジャッジ時間 | 2,603 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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); assert(str[0]!='0'); for(int i=0;i<N;i++){ assert(str[i]>='0'&&str[i]<='9'); } cout<<(N-1)/2+1<<endl; }