結果
| 問題 | No.3654 Cup Ramen |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-30 13:33:15 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.92.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 768 bytes |
| 記録 | |
| コンパイル時間 | 5,459 ms |
| コンパイル使用メモリ | 386,784 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-30 13:34:11 |
| 合計ジャッジ時間 | 6,838 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 14 WA * 6 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
using ll = long long;
using ull = unsigned long long;
using mint = modint998244353;
ll MOD=998244353;
#define all(x) x.begin(), x.end()
#define rep(i, n) for(ll i = 0; (i) < (n); (i)++)
template<class T>
auto comp_idx(const T* ptr){
return [ptr](auto l_idx, auto r_idx){
return ptr[l_idx] < ptr[r_idx];
};
}
template<class T>
vector<ll> IndexSort(T vec){
vector<ll> ind(vec.size());
iota(all(ind), 0);
sort(all(ind), comp_idx(vec.data()));
return ind;
}
void yn(bool flag){
string ans = (flag) ? "Yes" : "No";
cout<<ans<<endl;
}
int main(){
ll n, x; cin>>n>>x;
ll ans=0;
rep(i, n) {
ll b; cin>>b;
ans+=b;
}
cout<<ans-x<<endl;
}