結果

問題 No.547 未知の言語
ユーザー ひゅーら
提出日時 2017-08-07 18:35:28
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 333 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 32,128 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-26 02:29:59
合計ジャッジ時間 1,283 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstring>
int main(){
	int n;
	scanf("%d", &n);
	char s[n][25];
	char t[n][25];
	for(int i = 0; i < n; i++){
		scanf("%s", s[i]);
	}
	for(int i = 0; i < n; i++){
		scanf("%s", t[i]);
	}
	for(int i = 0; i < n; i++){
		if(strcmp(s[i], t[i])){
			printf("%d\n%s\n%s\n", i+1, s[i], t[i]);
			return 0;
		}
	}
}
0