結果

問題 No.547 未知の言語
ユーザー nanophoto12nanophoto12
提出日時 2017-08-29 23:15:27
言語 C++11
(gcc 11.4.0)
結果
RE  
実行時間 -
コード長 844 bytes
コンパイル時間 706 ms
コンパイル使用メモリ 93,068 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-08 09:37:33
合計ジャッジ時間 3,904 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 RE -
testcase_09 WA -
testcase_10 RE -
testcase_11 WA -
testcase_12 WA -
testcase_13 RE -
testcase_14 WA -
testcase_15 RE -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 RE -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 RE -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 RE -
testcase_29 RE -
testcase_30 WA -
testcase_31 RE -
testcase_32 WA -
権限があれば一括ダウンロードができます

ソースコード

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