結果
| 問題 |
No.224 文字列変更(easy)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-10-14 01:43:37 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 201 bytes |
| コンパイル時間 | 693 ms |
| コンパイル使用メモリ | 58,540 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-17 12:28:00 |
| 合計ジャッジ時間 | 1,788 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 21 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:9:26: warning: ‘n’ is used uninitialized [-Wuninitialized]
9 | for(int i = 0; i < n; i++){
| ~~^~~
ソースコード
#include <iostream>
#include <algorithm>
using namespace std;
int main(){
int n;
string S, T;
int ans = 0;
for(int i = 0; i < n; i++){
if(S[i] != T[i]){
ans++;
}
}
cout << ans << endl;
}