結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー kotatsugame
提出日時 2016-10-30 20:52:16
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 138 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 31,360 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-18 09:54:16
合計ジャッジ時間 1,041 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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--;)c=a[i]-'o'?m=m<c?c:m,0:++c;printf("%d\n",m<c?c:m);}
      | ^~~~

ソースコード

diff #

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