結果
| 問題 |
No.547 未知の言語
|
| コンテスト | |
| ユーザー |
nanophoto12
|
| 提出日時 | 2017-08-29 23:16:16 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 842 bytes |
| コンパイル時間 | 770 ms |
| コンパイル使用メモリ | 94,136 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-26 02:41:00 |
| 合計ジャッジ時間 | 1,729 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 33 |
ソースコード
#include <cmath>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <functional>
#include <queue>
#include <iostream>
#include <string.h>
#include <iomanip>
#include <algorithm>
#include <functional>
#include <cstdint>
#include <climits>
#include <unordered_set>
#include <sstream>
#include <stack>
using namespace std;
typedef long long int ll;
typedef pair<int,int> pii;
typedef tuple<ll,ll,ll> t3;
using namespace std;
int main()
{
int n;
cin >> n;
vector<string> s(n);
vector<string> t(n);
for(int i = 0;i < n;i++)
{
cin >> s[i];
}
int k = 0;
for(int i = 0;i < n;i++)
{
cin >> t[i];
if(t[i].compare(s[i]) != 0)
{
k = i;
}
}
cout << k+1 << endl;
cout << s[k] << endl;
cout << t[k] << endl;
return 0;
}
nanophoto12