結果
問題 | No.224 文字列変更(easy) |
ユーザー |
![]() |
提出日時 | 2015-12-17 14:25:28 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 54 ms / 5,000 ms |
コード長 | 522 bytes |
コンパイル時間 | 2,125 ms |
コンパイル使用メモリ | 74,776 KB |
実行使用メモリ | 37,132 KB |
最終ジャッジ日時 | 2024-07-18 02:10:03 |
合計ジャッジ時間 | 4,134 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader read = new BufferedReader(new InputStreamReader(System.in)); try { int n = Integer.parseInt(read.readLine()); String s = read.readLine(); String t = read.readLine(); int ans = 0; for (int i = 0; i < n; ++i) { if (s.charAt(i) != t.charAt(i)) { ++ans; } } System.out.println(ans); } catch (Exception e) { e.printStackTrace(); } } }