結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
![]() |
提出日時 | 2017-10-16 00:48:46 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 118 ms / 1,000 ms |
コード長 | 553 bytes |
コンパイル時間 | 1,933 ms |
コンパイル使用メモリ | 76,380 KB |
実行使用メモリ | 54,280 KB |
最終ジャッジ日時 | 2024-11-18 10:16:50 |
合計ジャッジ時間 | 6,032 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String input = sc.next() + sc.next(); int count = 0, max = 0; for(int i=0;i<14;i++){ if(input.charAt(i) == 'o'){ count = 0; for(int j=i;j<14;j++){ if(input.charAt(j) != 'o')break; count++; } max = Math.max(max,count); } } System.out.println(max); } }