結果

問題 No.495 (^^*) Easy
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-13 16:59:13
言語 Java21
(openjdk 21)
結果
AC  
実行時間 242 ms / 2,000 ms
コード長 286 bytes
コンパイル時間 2,293 ms
コンパイル使用メモリ 73,076 KB
実行使用メモリ 60,356 KB
最終ジャッジ日時 2023-10-11 11:40:21
合計ジャッジ時間 4,022 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 147 ms
56,732 KB
testcase_01 AC 147 ms
57,424 KB
testcase_02 AC 149 ms
57,112 KB
testcase_03 AC 144 ms
56,708 KB
testcase_04 AC 147 ms
56,960 KB
testcase_05 AC 164 ms
57,368 KB
testcase_06 AC 242 ms
60,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		
		String s = sc.next();
		int L = (s.replace("(*^^)","").length()-1) / 5;
		int R = (s.replace("(^^*)","").length()-1) / 5;
		System.out.println(L+" "+R);
		
	}
}
0