結果
問題 | No.224 文字列変更(easy) |
ユーザー |
![]() |
提出日時 | 2016-02-01 01:27:18 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 234 bytes |
コンパイル時間 | 96 ms |
コンパイル使用メモリ | 20,608 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-18 02:12:00 |
合計ジャッジ時間 | 697 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:9:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%d %s %s",&n, s, t); | ^~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main(void) { int n; char s[1001]; char t[1001]; int i; int count=0; scanf("%d %s %s",&n, s, t); for(i=0;i<n;i++){ if(s[i]!=t[i]){ count++; } } printf("%d\n",count); return 0; }