結果
| 問題 | No.3774 Minimum Cost For Palindrome |
| コンテスト | |
| ユーザー |
UT0911
|
| 提出日時 | 2026-08-11 21:03:02 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 17 ms / 2,000 ms |
| + 711µs | |
| コード長 | 247 bytes |
| 記録 | |
| コンパイル時間 | 419 ms |
| コンパイル使用メモリ | 80,880 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-10-23 20:52:42 |
| 合計ジャッジ時間 | 2,723 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main(){
string S;
cin >> S;
int ans=0;
int Slen=S.size();
for(int i=0;i<Slen/2;i++){
if(S[i]!=S[Slen-1-i]){
ans++;
}
}
cout << ans << "\n";
return 0;
}
UT0911