結果
| 問題 | No.495 (^^*) Easy |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-17 21:33:50 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 54 ms / 2,000 ms |
| コード長 | 485 bytes |
| 記録 | |
| コンパイル時間 | 3,391 ms |
| コンパイル使用メモリ | 82,072 KB |
| 実行使用メモリ | 40,528 KB |
| 最終ジャッジ日時 | 2026-05-10 13:29:18 |
| 合計ジャッジ時間 | 3,528 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 |
ソースコード
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class No00000495_Main2 {
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
public static void main(String[] args) throws IOException {
String s = br.readLine();
int l =0, r = 0;
for(int i = 0; i < s.length()-1; i+= 5) {
if("(*^^)".equals(s.substring(i, i + 5)) ) {
r++;
} else {
l++;
}
}
System.out.println(l + " "+ r);
}
}