結果
| 問題 | No.3218 Night Equation |
| コンテスト | |
| ユーザー |
asmin
|
| 提出日時 | 2025-08-01 21:56:58 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 6 ms / 2,000 ms |
| + 324µs | |
| コード長 | 450 bytes |
| 記録 | |
| コンパイル時間 | 1,236 ms |
| コンパイル使用メモリ | 199,868 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-13 16:54:12 |
| 合計ジャッジ時間 | 3,022 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 29 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
void solve(){
int N; cin >> N;
bool ok = false;
for(int i = 0; i < N; ++i){
int A; cin >> A;
if(A != 0) ok = true;
}
if(ok) cout << "Yes\n";
else cout << "No\n";
}
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout << setprecision(10) << fixed;
int T;
T = 1;
//cin >> T;
for(;T--;) solve();
}
asmin