結果

問題 No.418 ミンミンゼミ
ユーザー takeya_okinotakeya_okino
提出日時 2017-06-18 19:10:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 1,000 ms
コード長 227 bytes
コンパイル時間 2,003 ms
コンパイル使用メモリ 71,400 KB
実行使用メモリ 56,564 KB
最終ジャッジ日時 2023-09-23 01:53:32
合計ジャッジ時間 6,401 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
39,596 KB
testcase_01 AC 117 ms
39,404 KB
testcase_02 AC 118 ms
39,308 KB
testcase_03 AC 118 ms
39,244 KB
testcase_04 AC 118 ms
39,244 KB
testcase_05 AC 117 ms
39,256 KB
testcase_06 AC 118 ms
39,052 KB
testcase_07 AC 121 ms
39,612 KB
testcase_08 AC 118 ms
39,292 KB
testcase_09 AC 115 ms
39,408 KB
testcase_10 AC 119 ms
39,456 KB
testcase_11 AC 119 ms
39,776 KB
testcase_12 AC 116 ms
39,436 KB
testcase_13 AC 117 ms
39,312 KB
testcase_14 AC 122 ms
39,528 KB
testcase_15 AC 119 ms
39,564 KB
testcase_16 AC 119 ms
39,144 KB
testcase_17 AC 120 ms
39,704 KB
testcase_18 AC 126 ms
55,444 KB
testcase_19 AC 124 ms
55,696 KB
testcase_20 AC 122 ms
55,948 KB
testcase_21 AC 121 ms
55,524 KB
testcase_22 AC 119 ms
56,564 KB
testcase_23 AC 120 ms
55,912 KB
testcase_24 AC 120 ms
55,668 KB
testcase_25 AC 121 ms
55,636 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    s = s.replaceAll("-", "");
    System.out.println(s.length() / 3);
  }
}
0