結果

問題 No.1468 Colourful Pastel
ユーザー Notch Apple
提出日時 2025-02-02 14:11:12
言語 C++14
(gcc 15.2.0 + boost 1.90.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 569 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,067 ms
コンパイル使用メモリ 180,052 KB
実行使用メモリ 7,296 KB
最終ジャッジ日時 2026-06-27 07:43:33
合計ジャッジ時間 2,513 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
using namespace std;

#define pub push_back
#define el '\n'

const int mxn = 1e5+5;

int n;
string a[mxn];

void solve() {
    cin >> n;

    for(int i = 1; i <= n; i++) cin >> a[i];

    string tmp;
    for(int i = 1; i <= n; i++) {
        cin >> tmp;

        if (tmp == a[i]) continue;

        cout << a[i];
        break;
    }
}

signed main() {
    cin.tie(0) -> sync_with_stdio(0);

    freopen("homa.inp", "r", stdin);
    freopen("homa.out", "w", stdout);

    int t = 1;
    // cin >> t;

    for (int i = 1; i <= t; i++) solve();
}
0