結果

問題 No.3125 Make It Symmetry
ユーザー tomatonogunkan
提出日時 2025-04-25 21:42:06
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 346 bytes
コンパイル時間 1,919 ms
コンパイル使用メモリ 194,404 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-04-25 21:42:13
合計ジャッジ時間 3,132 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12 WA * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define rep(i,a,n) for(int i=(a);i<(n);i++)
int main(){
	int n,simai=0;
	cin >> n;
	vector<string> g(n);
	rep(i,0,n) cin >> g.at(i);
	
	rep(i,0,n){
		rep(j,0,n/2){
			if(g.at(i).at(j)!=g.at(i).at(n-1-j)){
				simai++;
			}
		}
	}
	if(simai>2){
		cout << "No" << endl;
	}
	else cout << "Yes" << endl;
}
0