結果
| 問題 |
No.481 1から10
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-22 15:12:21 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 405 bytes |
| コンパイル時間 | 2,527 ms |
| コンパイル使用メモリ | 275,636 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-09-22 15:12:25 |
| 合計ジャッジ時間 | 3,534 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <bits/stdc++.h>
[[nodiscard]] static inline constexpr uint_fast32_t solve(const std::array<uint_fast32_t, 9>& B) noexcept
{
return UINT32_C(55) - std::accumulate(B.begin(), B.end(), UINT32_C(0));
}
int main()
{
std::cin.tie(nullptr);
std::ios::sync_with_stdio(false);
std::array<uint_fast32_t, 9> B = { 0, };
for (auto& b : B) std::cin >> b;
std::cout << solve(B) << '\n';
return 0;
}