結果

問題 No.203 ゴールデン・ウィーク(1)
ユーザー kotatsugame
提出日時 2016-10-30 21:04:25
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 132 bytes
コンパイル時間 253 ms
コンパイル使用メモリ 31,232 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-24 23:51:33
合計ジャッジ時間 1,180 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14 WA * 15
権限があれば一括ダウンロードができます
コンパイルメッセージ
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'?0:m=m<++c?c:m,c);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;c=a[i--]-'o'?0:m=m<++c?c:m,c);printf("%d\n",m);}
0