結果

問題 No.547 未知の言語
ユーザー nanophoto12
提出日時 2017-08-29 23:15:27
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
RE  
実行時間 -
コード長 844 bytes
コンパイル時間 832 ms
コンパイル使用メモリ 92,712 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-26 02:40:43
合計ジャッジ時間 4,051 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 20 RE * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#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 + 1;
        }
    }
    cout << k << endl;
    cout << s[k] << endl;
    cout << t[k] << endl;
    return 0;
}
0