結果
| 問題 | No.203 ゴールデン・ウィーク(1) |
| コンテスト | |
| ユーザー |
Tsukasa_Type
|
| 提出日時 | 2018-02-09 18:04:00 |
| 言語 | Java (openjdk 27 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 57 ms / 1,000 ms |
| + 170µs | |
| コード長 | 407 bytes |
| 記録 | |
| コンパイル時間 | 1,445 ms |
| コンパイル使用メモリ | 87,244 KB |
| 実行使用メモリ | 45,396 KB |
| 最終ジャッジ日時 | 2026-10-11 04:04:14 |
| 合計ジャッジ時間 | 4,678 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
}
}
Tsukasa_Type