結果
| 問題 |
No.203 ゴールデン・ウィーク(1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-20 03:16:44 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 375 bytes |
| コンパイル時間 | 542 ms |
| コンパイル使用メモリ | 54,492 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-18 09:56:04 |
| 合計ジャッジ時間 | 1,288 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
#include "iostream"
using namespace std;
char letter[2][15];
int ans = 0;
int box = 0;
int main() {
cin >> letter[0]>>letter[1];
for (int i = 0; i < 7; i++) {
if (letter[0][i] == 'o')box++;
else box = 0;
if (box > ans)ans = box;
}
for (int i = 0; i < 7; i++) {
if (letter[1][i] == 'o')box++;
else box = 0;
if (box > ans)ans = box;
}
cout << ans << "\n";
}