結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
|
提出日時 | 2018-02-21 22:36:53 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 119 ms / 1,000 ms |
コード長 | 445 bytes |
コンパイル時間 | 3,435 ms |
コンパイル使用メモリ | 75,144 KB |
実行使用メモリ | 55,912 KB |
最終ジャッジ日時 | 2024-11-18 10:23:50 |
合計ジャッジ時間 | 7,042 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
package m.shin; import java.util.Scanner; public class Con203 { public static void main(String[] args) { Scanner s = new Scanner(System.in); String[] w = {s.next() , s.next()}; s.close(); int max = 0 , k = 0; for(int i = 0;i < 2;i++){ for(int j = 0;j < 7;j++){ if(w[i].charAt(j) == 'o'){ k++; }else{ max = Math.max(max, k); k = 0; } } } max = Math.max(max, k); System.out.println(max); } }