結果
| 問題 | No.1389 Clumsy Calculation |
| コンテスト | |
| ユーザー |
xRS43BofaUEZ5gc
|
| 提出日時 | 2021-03-05 09:32:07 |
| 言語 | Java (openjdk 27 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 475 ms / 2,000 ms |
| + 676µs | |
| コード長 | 390 bytes |
| 記録 | |
| コンパイル時間 | 3,700 ms |
| コンパイル使用メモリ | 85,660 KB |
| 実行使用メモリ | 57,188 KB |
| 最終ジャッジ日時 | 2026-10-07 01:32:19 |
| 合計ジャッジ時間 | 14,070 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
import java.util.Scanner;
public class HelloWorld {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int x = sc.nextInt();
int sum = 0;
for (int i=0; i < n; i ++) {
sum += sc.nextInt();
}
sc.close();
System.out.println(- (n - 1) * x + sum);
}
}
xRS43BofaUEZ5gc