結果
| 問題 |
No.3218 Night Equation
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-08-01 21:56:40 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 13 ms / 2,000 ms |
| コード長 | 499 bytes |
| コンパイル時間 | 769 ms |
| コンパイル使用メモリ | 85,144 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-08-01 21:56:43 |
| 合計ジャッジ時間 | 2,361 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 29 |
ソースコード
#include <iostream>
#include <cstdint>
#include <vector>
static inline constexpr const char* solve(const uint_fast32_t N, const std::vector<uint_fast32_t>& A) noexcept
{
for (uint_fast32_t i = 0; i != N; ++i)
if (A[i] != 0) return "Yes";
return "No";
}
int main()
{
std::cin.tie(nullptr);
std::ios::sync_with_stdio(false);
uint_fast32_t N, i;
std::cin >> N;
std::vector<uint_fast32_t> A(N);
for (i = 0; i != N; ++i)
std::cin >> A[i];
std::cout << solve(N, A) << '\n';
return 0;
}