結果
| 問題 | No.3654 Cup Ramen |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-30 13:33:29 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.92.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 267 bytes |
| 記録 | |
| コンパイル時間 | 2,207 ms |
| コンパイル使用メモリ | 350,968 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-30 13:34:16 |
| 合計ジャッジ時間 | 3,448 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 14 WA * 6 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n, x, s = 0;
cin >> n;
cin >> x;
vector<int> a(n);
for (auto &nx : a)
{
cin >> nx;
}
for (int i = 0; i < n; i++)
{
s += a[i];
}
s = s - x;
cout << s << "\n";
return 0;
}