結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
![]() |
提出日時 | 2016-06-17 15:34:58 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 329 bytes |
コンパイル時間 | 600 ms |
コンパイル使用メモリ | 56,008 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-18 09:44:03 |
合計ジャッジ時間 | 1,484 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include<iostream> #include<string> using namespace std; int main(){ string in,in2; cin>>in; cin>>in2; in+=in2; for(int i=14;i>=1;i--){ for(int j=0;j<14-i+1;j++){ bool f=true; for(int k=0;k<i;k++){ if(in[j+k]=='x') f=false; } if(f){ cout<<i<<endl; return 0; } } } cout<<"0"<<endl; }