結果
| 問題 |
No.224 文字列変更(easy)
|
| コンテスト | |
| ユーザー |
matsuyoshi30
|
| 提出日時 | 2017-01-10 23:13:49 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 652 bytes |
| コンパイル時間 | 2,247 ms |
| コンパイル使用メモリ | 78,240 KB |
| 実行使用メモリ | 56,212 KB |
| 最終ジャッジ日時 | 2024-12-18 01:03:28 |
| 合計ジャッジ時間 | 6,015 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 22 |
ソースコード
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
String s = in.nextLine();
String t = in.nextLine();
int count = 0;
char[] s_to_c = s.toCharArray();
char[] t_to_c = t.toCharArray();
for(int i=0; i<n; i++) {
if(s_to_c[i] != t_to_c[i]) {
count++;
} else {
// nothing
}
}
System.out.println(count);
in.close();
}
}
matsuyoshi30