結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
![]() |
提出日時 | 2018-02-09 18:04:00 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 126 ms / 1,000 ms |
コード長 | 407 bytes |
コンパイル時間 | 2,058 ms |
コンパイル使用メモリ | 76,336 KB |
実行使用メモリ | 54,360 KB |
最終ジャッジ日時 | 2024-11-18 10:23:06 |
合計ジャッジ時間 | 6,211 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { String s = ""; for (int i=0; i<2; i++) { s += sc.nextLine(); } int count = 0; int max = 0; for (int i=0; i<s.length(); i++) { if (s.charAt(i)=='o') { count++; max = Math.max(max,count); } else {count = 0;} } System.out.println(max); } }