結果
| 問題 | No.3774 Minimum Cost For Palindrome |
| コンテスト | |
| ユーザー |
UT0911
|
| 提出日時 | 2026-08-11 21:30:43 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 233 bytes |
| 記録 | |
| コンパイル時間 | 1,333 ms |
| コンパイル使用メモリ | 213,896 KB |
| 実行使用メモリ | 9,908 KB |
| 最終ジャッジ日時 | 2026-10-23 20:53:03 |
| 合計ジャッジ時間 | 3,220 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 8 WA * 12 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
string S,T;
cin >> S;
T=S;
reverse(T.begin(),T.end());
int ans=0;
for(int i=0;i<S.size();i++){
if(S[i]!=T[i]){
ans++;
}
}
cout << ans << "\n";
}
UT0911