結果

問題 No.547 未知の言語
ユーザー nenuon
提出日時 2017-07-28 22:22:35
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 611 bytes
コンパイル時間 764 ms
コンパイル使用メモリ 92,140 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-26 02:07:09
合計ジャッジ時間 1,719 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
#include <bitset>
using namespace std;
#define FOR(I,A,B) for(int I = (A); I < (B); ++I)
typedef long long ll;

int main()
{

  int N;
  cin >> N;
  vector<string> s(N), t(N);
  FOR(i,0,N) cin >> s[i];
  FOR(i,0,N) cin >> t[i];
  FOR(i,0,N) {
    if(s[i]!=t[i]) {
      cout << i + 1 << endl;
      cout << s[i] << endl;
      cout << t[i] << endl;
      return 0;
    }
  }
}
0