結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-14 22:19:33 |
| 言語 | Java (openjdk 27 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 56 ms / 1,000 ms |
| + 904µs | |
| コード長 | 583 bytes |
| 記録 | |
| コンパイル時間 | 1,557 ms |
| コンパイル使用メモリ | 87,100 KB |
| 実行使用メモリ | 45,392 KB |
| 最終ジャッジ日時 | 2026-10-11 04:04:50 |
| 合計ジャッジ時間 | 4,716 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner in = new Scanner(System.in);
int weekday = 0;
String days = in.nextLine();
days += in.nextLine();
for(int i=0, current=0; i<days.length(); i++){
if(days.charAt(i) == 'o'){
current++;
} else {
current = 0;
}
if(weekday < current){
weekday = current;
}
}
System.out.println(weekday);
}
}