結果
問題 | No.1389 Clumsy Calculation |
ユーザー |
👑 |
提出日時 | 2022-05-07 10:49:32 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 105 ms / 2,000 ms |
コード長 | 202 bytes |
コンパイル時間 | 661 ms |
コンパイル使用メモリ | 65,776 KB |
最終ジャッジ日時 | 2025-01-29 04:39:02 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 26 |
ソースコード
#include <iostream>using namespace std;int main(){long long n,x;cin>>n>>x;long long sm = 0;for(int i = 0; n > i; i++){long long t;cin>>t;sm += t;}cout << sm-(n-1)*x << endl;}