結果

問題 No.1468 Colourful Pastel
ユーザー itsy68
提出日時 2022-05-03 01:42:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 105 ms / 1,000 ms
コード長 664 bytes
コンパイル時間 233 ms
コンパイル使用メモリ 82,100 KB
実行使用メモリ 94,720 KB
最終ジャッジ日時 2024-07-02 05:43:59
合計ジャッジ時間 3,275 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

# import pypyjit
# pypyjit.set_param('max_unroll_recursion=-1')
import sys
from itertools import combinations, permutations, product, accumulate, groupby
from collections import defaultdict, deque, Counter
from functools import reduce
from operator import add, mul
import heapq
import bisect
import math
import copy

# sys.setrecursionlimit(10 ** 9)
input = lambda: sys.stdin.readline().rstrip()
INF = float("inf")
MOD = 10 ** 9 + 7

N = int(input())
A = list(input().split())
B = list(input().split())
a_counter = Counter(A)
b_counter = Counter(B)
for k, v in a_counter.items():
    if b_counter[k] == v:
        continue
    else:
        print(k)
        exit()
0