結果
| 問題 |
No.224 文字列変更(easy)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-30 13:32:38 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 131 ms / 5,000 ms |
| コード長 | 351 bytes |
| コンパイル時間 | 1,811 ms |
| コンパイル使用メモリ | 75,136 KB |
| 実行使用メモリ | 41,676 KB |
| 最終ジャッジ日時 | 2024-07-18 02:13:08 |
| 合計ジャッジ時間 | 5,173 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
package yukicoder224;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
String str1=sc.next();
String str2=sc.next();
int count=0;
for(int i=0;i<n;i++){
if(str1.charAt(i)!=str2.charAt(i)){
count++;
}
}
System.out.println(count);
}
}