結果

問題 No.547 未知の言語
ユーザー yuasa0000
提出日時 2019-03-04 15:03:53
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 437 bytes
コンパイル時間 469 ms
コンパイル使用メモリ 57,544 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-23 13:28:13
合計ジャッジ時間 1,554 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
int main() {
	int N;
	std::cin >> N;
	std::string* S = new std::string[N];
	std::string* T = new std::string[N];
	for (int i = 0; i < N; i++) {
		std::cin >> S[i];
	}
	for (int i = 0; i < N; i++) {
		std::cin >> T[i];
	}

	for (int i = 0; i < N; i++) {
		if (S[i] != T[i]) {
			std::cout << i+1 << std::endl;
			std::cout << S[i] << std::endl;
			std::cout << T[i] << std::endl;
		}
	}

	return 0;
}
0