結果
問題 | No.203 ゴールデン・ウィーク(1) |
ユーザー |
![]() |
提出日時 | 2015-10-07 21:04:04 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 139 ms / 1,000 ms |
コード長 | 663 bytes |
コンパイル時間 | 2,396 ms |
コンパイル使用メモリ | 76,112 KB |
実行使用メモリ | 41,500 KB |
最終ジャッジ日時 | 2024-11-18 09:31:34 |
合計ジャッジ時間 | 7,103 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 29 |
ソースコード
import java.util.Scanner; public class Main { Scanner sc = new Scanner(System.in); String InputChar = ""; int Count = 0; int Result = 0; public static void main(String[] args) { new Main().solve(); } void solve() { for(int i = 0; i < 2; i++) { InputChar = InputChar + sc.next(); } for(int i = 0; i < 14; i++) { if(InputChar.charAt(i) == 'o') { Count++; } else { Result = Math.max(Result, Count); Count = 0; } } Result = Math.max(Result, Count); System.out.println(Result); } }