結果
問題 | No.224 文字列変更(easy) |
ユーザー |
![]() |
提出日時 | 2017-10-03 09:24:02 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 123 ms / 5,000 ms |
コード長 | 370 bytes |
コンパイル時間 | 1,708 ms |
コンパイル使用メモリ | 74,644 KB |
実行使用メモリ | 54,352 KB |
最終ジャッジ日時 | 2024-07-18 02:27:03 |
合計ジャッジ時間 | 4,872 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
import java.util.Scanner; public class Main{ private static Scanner sc=new Scanner(System.in); public static void main(String args[])throws Exception{ int n=Integer.parseInt(sc.nextLine()); char s[]=sc.nextLine().toCharArray(),t[]=sc.nextLine().toCharArray(); n=0; for(int i=0;i<s.length;i++){ if(s[i] != t[i]){ n++; } }System.out.println(n); } }