結果
| 問題 |
No.9014 テストの合計点と平均点
|
| ユーザー |
Maeda
|
| 提出日時 | 2025-09-09 17:35:33 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 462 bytes |
| コンパイル時間 | 2,465 ms |
| コンパイル使用メモリ | 77,776 KB |
| 実行使用メモリ | 48,008 KB |
| 最終ジャッジ日時 | 2025-09-09 17:35:38 |
| 合計ジャッジ時間 | 4,084 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 2 WA * 1 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String text = scan.next();
String[] list = text.split(",");
int a = Integer.parseInt(list[0]);
int b = Integer.parseInt(list[1]);
int c = Integer.parseInt(list[2]);
System.out.println("合計点:" + (a+b+c));
System.out.println("平均点:" + Math.floor((a+b+c)/3));
}
}
Maeda