結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
![]() |
提出日時 | 2015-05-19 09:32:57 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 390 bytes |
コンパイル時間 | 558 ms |
コンパイル使用メモリ | 62,176 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 05:42:33 |
合計ジャッジ時間 | 1,339 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 WA * 5 |
ソースコード
#include<iostream> #include <math.h> #include <string> using namespace std; int main(){ string c1; string c2; string c3; string j; int cnt = 0; int max = 0; cin >> c1; cin >> c2; c3 = c1 + c2; for (int i = 0; i < 14; i++){ j = c3.substr(i, 1); if (j == "o"){ cnt += 1; } else{ if (cnt>max){ max = cnt; } cnt = 0; } } cout << max << endl; return 0; }