結果

問題 No.418 ミンミンゼミ
ユーザー uafr_csuafr_cs
提出日時 2016-09-09 22:22:09
言語 Java19
(openjdk 21)
結果
AC  
実行時間 44 ms / 1,000 ms
コード長 1,390 bytes
コンパイル時間 7,703 ms
コンパイル使用メモリ 74,532 KB
実行使用メモリ 49,828 KB
最終ジャッジ日時 2023-09-23 00:41:51
合計ジャッジ時間 4,683 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,476 KB
testcase_01 AC 41 ms
49,728 KB
testcase_02 AC 42 ms
49,712 KB
testcase_03 AC 41 ms
49,412 KB
testcase_04 AC 42 ms
49,320 KB
testcase_05 AC 42 ms
49,356 KB
testcase_06 AC 42 ms
49,576 KB
testcase_07 AC 44 ms
49,316 KB
testcase_08 AC 41 ms
47,412 KB
testcase_09 AC 41 ms
49,472 KB
testcase_10 AC 42 ms
49,396 KB
testcase_11 AC 41 ms
49,308 KB
testcase_12 AC 41 ms
49,352 KB
testcase_13 AC 40 ms
47,444 KB
testcase_14 AC 41 ms
49,424 KB
testcase_15 AC 40 ms
49,264 KB
testcase_16 AC 41 ms
49,480 KB
testcase_17 AC 40 ms
49,568 KB
testcase_18 AC 40 ms
49,420 KB
testcase_19 AC 41 ms
49,392 KB
testcase_20 AC 40 ms
49,488 KB
testcase_21 AC 40 ms
49,524 KB
testcase_22 AC 41 ms
49,368 KB
testcase_23 AC 43 ms
49,324 KB
testcase_24 AC 41 ms
49,828 KB
testcase_25 AC 41 ms
49,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Scanner;
import java.util.Set;
import java.util.StringTokenizer;

public class Main {

	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);

		System.out.println(sc.next().replace("-", "").length() / 3);
	}
	
	public static class Scanner implements Closeable {
		private BufferedReader br;
		private StringTokenizer tok;
 
		public Scanner(InputStream is) throws IOException {
			br = new BufferedReader(new InputStreamReader(is));
		}	
 
		private void getLine() throws IOException {
			while (!hasNext()) {
				tok = new StringTokenizer(br.readLine());
			}
		}
 
		private boolean hasNext() {
			return tok != null && tok.hasMoreTokens();
		}
 
		public String next() throws IOException {
			getLine();
			return tok.nextToken();
		}
 
		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}
 
		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}
 
		public double nextDouble() throws IOException {
			return Double.parseDouble(next());
		}
 
		public void close() throws IOException {
			br.close();
		}
	}
}
0