MCPcopy Create free account
hub / github.com/E869120/math-algorithm-book / main

Method main

editorial/chap2-2/prob2-2-4.java:4–22  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

2
3class Main {
4 public static void main(String[] args) {
5 Scanner sc = new Scanner(System.in);
6
7 // 入力
8 int N = sc.nextInt();
9 int[] A = new int[N + 1];
10 for (int i = 1; i <= N; i++) {
11 A[i] = sc.nextInt();
12 }
13
14 // 答えの計算
15 int Answer = 0;
16 for (int i = 1; i <= N; i++) {
17 Answer += A[i];
18 }
19
20 // 出力
21 System.out.println(Answer % 100);
22 }
23};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected