結果
| 問題 | No.3654 Cup Ramen |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-30 13:35:58 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 351µs | |
| コード長 | 226 bytes |
| 記録 | |
| コンパイル時間 | 964 ms |
| コンパイル使用メモリ | 152,880 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-30 13:36:43 |
| 合計ジャッジ時間 | 2,321 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include <iostream>
using namespace std;
int main() {
long long n, x;
cin >> n >> x;
for (int i = 0; i < n; i++) {
long long a;
cin >> a;
x -= a;
}
cout << max(0LL, -x) << endl;
}