結果
問題 |
No.2836 Comment Out
|
ユーザー |
![]() |
提出日時 | 2024-08-17 09:43:34 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 514 bytes |
コンパイル時間 | 1,786 ms |
コンパイル使用メモリ | 194,604 KB |
最終ジャッジ日時 | 2025-02-23 22:58:10 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 52 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define pb emplace_back #define mp make_pair using ll = long long; using pii = pair<int,int>; constexpr int mod = 998244353; constexpr int inf = 0x3f3f3f3f; constexpr int N = 2e5 + 10; void _main(){ int n; cin >> n; vector<int> a(n); for(int &v : a) cin >> v; if(*min_element(a.begin(), a.end()) <= 1){ cout << "Yes\n"; } else { cout << "No\n"; } } int main(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); _main(); return 0; }