結果
| 問題 |
No.547 未知の言語
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-07-28 22:21:37 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 477 bytes |
| コンパイル時間 | 712 ms |
| コンパイル使用メモリ | 72,584 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-26 02:05:05 |
| 合計ジャッジ時間 | 1,889 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 33 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
int main() {
int n;
std::cin >> n;
std::vector<std::string> a(n), b(n);
for (int i = 0; i < n; i++) std::cin >> a[i];
for (int i = 0; i < n; i++) std::cin >> b[i];
for (int i = 0; i < n; i++) {
if (a[i] != b[i]) {
std::cout << i + 1 << std::endl;
std::cout << a[i] << std::endl;
std::cout << b[i] << std::endl;
}
}
}