結果
問題 |
No.3218 Night Equation
|
ユーザー |
![]() |
提出日時 | 2025-08-10 23:06:55 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 8 ms / 2,000 ms |
コード長 | 617 bytes |
コンパイル時間 | 3,098 ms |
コンパイル使用メモリ | 275,184 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-08-10 23:07:00 |
合計ジャッジ時間 | 5,211 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 29 |
ソースコード
#include <bits/stdc++.h> //#include <atcoder/modint> using namespace std; //using namespace atcoder; using ll = long long; //using mint = modint998244353; int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); /* A_1 > 0なら無限大で正になる。 A_1 = 0でもA_2, ... と繰り返していくと、A_i=0がすべてのiで成り立つ時のみNo */ int N, a; cin >> N; for (int i=0; i<N; i++){ cin >> a; if (a > 0){ cout << "Yes" << endl; return 0; } } cout << "No" << endl; return 0; }