結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー kotatsugame
提出日時 2016-10-30 21:10:06
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 130 bytes
コンパイル時間 179 ms
コンパイル使用メモリ 31,232 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-18 09:54:25
合計ジャッジ時間 973 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 29
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){char a[15];scanf("%s\n%s",&a,&a[7]);int c=0,m=0,i=14;for(;i--;a[i]-'o'?c=0:m=m<++c?c:m);printf("%d\n",m);}
      | ^~~~

ソースコード

diff #

#include<cstdio>
main(){char a[15];scanf("%s\n%s",&a,&a[7]);int c=0,m=0,i=14;for(;i--;a[i]-'o'?c=0:m=m<++c?c:m);printf("%d\n",m);}
0