結果
| 問題 | No.3611 Omega Cat(Judging ver.) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-07 10:16:35 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,328 bytes |
| 記録 | |
| コンパイル時間 | 2,539 ms |
| コンパイル使用メモリ | 335,700 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-07 10:17:08 |
| 合計ジャッジ時間 | 5,764 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| サブタスク | 配点 | 結果 |
|---|---|---|
| サンプル | 0 % | AC * 1 |
| 小課題1 | 20 % | WA * 6 |
| 小課題2 | 40 % | AC * 11 WA * 8 |
| 小課題3 | 40 % | AC * 20 WA * 13 |
| 合計 | 1.5 * 0% = 0 点 |
ソースコード
#include <bits/stdc++.h>
#define rep(i, n) for(int i=0;i<(int)(n);i++)
#define pb push_back
#define pob pop_back
#define eb emplace_back
#define nall(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define yesno(a) cout<<(a?"Yes\n":"No\n")
#define lb lower_bound
#define ub lower_bound
#define yes cout<<"Yes\n"
#define no cout<<"No\n"
using namespace std;
using ll = long long;
using ull = unsigned long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
template<class T> using pq = priority_queue<T>;
template<class T> using pqg = priority_queue<T, vector<T>, greater<T>>;
template<class T> using vec = vector<T>;
template<class T> using vv = vector<vector<T>>;
template<class T> using vvv = vector<vv<T>>;
template<class T> using vvvv = vector<vvv<T>>;
template<class T> using vvvvv = vector<vvvv<T>>;
void solve();
signed main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
unsigned T = 1;
cin >> T;
cout << fixed << setprecision(20);
while (T--) solve();
return 0;
}
void solve(){
int N;
cin >> N;
vector<int> A(N);
for (int& x : A) cin >> x;
string S;
rep(i, N-1){
if (A[i] > A[i+1]) S.push_back('>');
if (A[i] < A[i+1]) S.push_back('<');
}
int ham = 0;
rep(i, N-2) if (S[i] != S[i+1]) ham++;
yesno(ham == 3);
}