結果

問題 No.547 未知の言語
ユーザー kikage
提出日時 2020-02-23 00:03:43
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 327 bytes
コンパイル時間 945 ms
コンパイル使用メモリ 55,256 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-10 01:15:41
合計ジャッジ時間 1,463 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main(){
    int N;
    string s[10],t;
    cin >> N;
    for(int i=0;i<N;i++)cin >> s[i];
    for(int pos=1;pos<=N;pos++){
        cin >> t;
        if(s[pos-1]!=t){
            cout << pos << endl << s[pos-1] << endl << t << endl;
            break;
        }
    }
    return 0;
}
0