結果
| 問題 |
No.547 未知の言語
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-10-23 23:26:20 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 23 ms / 2,000 ms |
| コード長 | 348 bytes |
| コンパイル時間 | 665 ms |
| コンパイル使用メモリ | 68,220 KB |
| 最終ジャッジ日時 | 2025-01-05 03:26:34 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 33 |
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main() {
int n; cin >> n;
string a[20], b[20];
for (int i = 1; i <= n; i++)
cin >> a[i];
for (int i = 1; i <= n; i++)
cin >> b[i];
for (int i = 1; i <= n; i++) {
if (a[i] != b[i]) {
cout << i << endl;
cout << a[i] << endl;
cout << b[i] << endl;
return 0;
}
}
}