結果

問題 No.547 未知の言語
ユーザー mikan765
提出日時 2017-07-28 22:41:18
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 597 bytes
コンパイル時間 948 ms
コンパイル使用メモリ 75,952 KB
最終ジャッジ日時 2025-01-05 01:55:07
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <stdio.h>
#include <string>
#include <list>
#include <vector>

#define rep(i,n) for(int i = 0;i < n;i++)
#define REP(i,n,k) for(int i = n;i < k;i++)
#define P(p) cout << (p) << endl;//print
using namespace std;

int main(){
    cin.tie(0);
   	ios::sync_with_stdio(false);
    int n;
    cin >> n;
    vector<string> s;
    rep(i,n){
        string a;
        cin>>a;
        s.push_back(a);
    }
    rep(i,n){
        string t;
        cin >> t;
        if(t!=s[i]){
            P(i+1);
            P(s[i]);
            P(t);
            return 0;
        }
    }
}
0