結果

問題 No.547 未知の言語
コンテスト
ユーザー nanophoto12
提出日時 2017-08-29 23:15:27
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
RE  
実行時間 -
コード長 844 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 543 ms
コンパイル使用メモリ 114,168 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2026-03-12 16:02:21
合計ジャッジ時間 2,728 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 20 RE * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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