結果
問題 | No.341 沈黙の期間 |
ユーザー |
![]() |
提出日時 | 2020-03-03 22:14:25 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 287 bytes |
コンパイル時間 | 1,465 ms |
コンパイル使用メモリ | 166,736 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-13 23:11:20 |
合計ジャッジ時間 | 2,200 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include<bits/stdc++.h>int main(){std::string s;std::cin>>s;std::string t="…";std::size_t ans=0;for(std::size_t i=0;i<s.length();i++){std::size_t j=0;for(;s.substr(i,3)==t;j++,i+=3);if(ans<j)ans=j;}std::cout<<ans<<std::endl;}