結果
| 問題 | No.3387 23578 Sequence |
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2026-02-09 02:12:32 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 332 bytes |
| 記録 | |
| コンパイル時間 | 1,518 ms |
| コンパイル使用メモリ | 147,752 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-02-09 02:12:35 |
| 合計ジャッジ時間 | 3,235 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 28 |
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main(){
int n;
cin>>n;
int arr[n],found=0;
for(int i =0;i<n;i++){
cin>>arr[i];
}
for(int i=0;i<n/2;i++){
if (arr[i]==arr[n-i-1]){
found = 1;
}
else {
found = 0;
}
}
if (found){
cout<<"YES"<<endl;
}
else cout<<"NO"<<endl;
return 0;
}
vjudge1