結果

問題 No.547 未知の言語
ユーザー Gamer13
提出日時 2017-08-30 01:33:32
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 663 bytes
コンパイル時間 899 ms
コンパイル使用メモリ 72,324 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-26 02:41:57
合計ジャッジ時間 1,934 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <array>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>

#define FOR(i,n) for(int (i)=0;(i)<(int)(n);++(i))
#define FORR(i,l,n) for(int (i)=l;(i)<(int)(n);++(i))

int main() {
	int N;
	std::cin >> N;
	
	std::vector<std::string> vS;
	std::vector<std::string> vT;
	vS.reserve(N);
	vS.resize(N);	
	vT.reserve(N);
	vT.resize(N);

	FOR(i, N) {
		std::cin >> vS[i];
	}
	FOR(i, N) {
		std::cin >> vT[i];
	}
	FOR(i, N) {
		if (vS[i].compare(vT[i]) != 0) {
			std::cout << i + 1 << std::endl;
			std::cout << vS[i] << std::endl;
			std::cout << vT[i] << std::endl;
			break;
		}
	}
	return 0;
}

0