結果
問題 |
No.203 ゴールデン・ウィーク(1)
|
ユーザー |
![]() |
提出日時 | 2018-02-09 18:03:23 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 423 bytes |
コンパイル時間 | 2,244 ms |
コンパイル使用メモリ | 76,212 KB |
実行使用メモリ | 54,300 KB |
最終ジャッジ日時 | 2024-10-07 19:34:27 |
合計ジャッジ時間 | 6,815 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 28 WA * 1 |
ソースコード
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 = Integer.MIN_VALUE; 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); } }