結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
|
提出日時 | 2018-04-29 19:09:01 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 293 bytes |
コンパイル時間 | 158 ms |
コンパイル使用メモリ | 28,672 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-18 10:24:44 |
合計ジャッジ時間 | 999 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
#include <stdio.h> #include <string.h> int main(void) { char c[15], t[8]; scanf("%s\n%s", c, t); strcat(c, t); int s, i = 0, a = 0; while (c[i] > 0) { s = 0; while (c[i] == 111) { s++; if (s > a) a = s; i++; } i++; } printf("%d\n", a); return 0; }