結果
問題 |
No.224 文字列変更(easy)
|
ユーザー |
|
提出日時 | 2021-02-16 16:02:26 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 162 ms / 5,000 ms |
コード長 | 441 bytes |
コンパイル時間 | 3,017 ms |
コンパイル使用メモリ | 74,004 KB |
実行使用メモリ | 54,520 KB |
最終ジャッジ日時 | 2024-09-13 03:36:34 |
合計ジャッジ時間 | 6,556 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n=sc.nextInt(); String [] s=sc.next().split(""); String [] t=sc.next().split(""); int count=0; for(int i=0; i<n; i++){ if(!(s[i].equals(t[i]))){ count++; } } System.out.println(count); sc.close(); } }