結果
問題 |
No.2343 (l+r)/2
|
ユーザー |
|
提出日時 | 2023-06-09 22:30:49 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 294 bytes |
コンパイル時間 | 603 ms |
コンパイル使用メモリ | 60,188 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-01-02 03:48:23 |
合計ジャッジ時間 | 1,309 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 6 WA * 8 |
ソースコード
#include<iostream> using namespace std; int N,A[2<<17]; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int T; cin>>T; for(;T--;) { cin>>N; for(int i=0;i<N;i++)cin>>A[i]; bool out=true; for(int i=1;i<N;i++)if(A[i-1]==A[i])out=false; cout<<(out?"No\n":"Yes\n"); } }