結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-23 06:35:36 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 652 bytes |
| コンパイル時間 | 816 ms |
| コンパイル使用メモリ | 80,096 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-15 16:40:09 |
| 合計ジャッジ時間 | 1,831 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include <iostream> //cin, cout
#include <vector> //vector
#include <algorithm> //sort,min,max
#include <string> //string
#include <ios> //fixed
#include <iomanip> //setprecision
#include <utility> //swap
#include <cstdlib> //abs(int)
#include <cmath> //sqrt
#include <sstream> //stringstream,getline
#include <cmath> //ceil
using namespace std;
int main() {
string s1, s2;
cin >> s1 >> s2;
s1 = s1 + s2;
int temp = 0, ans = 0;
for (int i = 0; i < 14; i++) {
if (s1[i] == 'o') {
temp++;
}
else {
if (temp > ans) {
ans = temp;
}
temp = 0;
}
}
if (temp > ans) {
ans = temp;
}
cout << ans << endl;
return 0;
}