結果
問題 |
No.1389 Clumsy Calculation
|
ユーザー |
![]() |
提出日時 | 2022-07-12 22:25:20 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 82 ms / 2,000 ms |
コード長 | 231 bytes |
コンパイル時間 | 2,981 ms |
コンパイル使用メモリ | 242,652 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-23 20:31:03 |
合計ジャッジ時間 | 6,191 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long signed main(){ int N,X; cin>>N>>X; int sum = 0; for(int i=0;i<N;i++){ int x; cin>>x; sum += x; }cout<<abs(X*(N-1)-sum)<<endl; }