結果

問題 No.547 未知の言語
ユーザー tokutaro
提出日時 2020-03-21 15:15:38
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 486 bytes
コンパイル時間 797 ms
コンパイル使用メモリ 72,180 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-22 21:40:13
合計ジャッジ時間 2,008 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
using namespace std;

int main() {
    int N;
    cin >> N;
    vector<string> vc;
    REP(i, N) {
        string s;
        cin >> s;
        vc.push_back(s);
    }
    REP (i, N) {
        string s;
        cin >> s;
        if (s != vc.at(i)) {
            cout << i + 1 << endl;
            cout << vc.at(i) << endl;
            cout << s << endl;
            break;
        }
    }
    return 0;
}
0