結果
問題 |
No.1468 Colourful Pastel
|
ユーザー |
|
提出日時 | 2021-04-04 12:44:52 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 3,067 bytes |
コンパイル時間 | 345 ms |
コンパイル使用メモリ | 13,056 KB |
実行使用メモリ | 83,468 KB |
最終ジャッジ日時 | 2024-12-27 22:41:08 |
合計ジャッジ時間 | 22,566 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 3 WA * 22 |
ソースコード
import pprint, bisect, time, functools, collections, copy, heapq, math, string, sys, re from typing import List, Any import itertools as it import numpy as np import scipy as sc ts = time.time() # --end--# class Funcinput: def __init__(self): pass def InputStrList(self, N): li = [input() for _ in range(N)] return li def InputStrMultiple(self): return sys.stdin.readline().rstrip().split() def InputIntMultiple(self): return map(int, input().split()) def InputIntList(self): return list(map(int, input().split())) def InputIntListCycle(self, N): li = [list(map(int, input().split())) for _ in range(N)] return (li) def InputStrListCycle(self, N): li = [input().split() for _ in range(N)] return li def InputStrColumn(self): x = input() li = [] for i in range(len(x)): li.append(x[i]) return li class ListFunc: def __init__(self): pass def UniqueListInt(self, R): li = [list(map(int, input().split())) for _ in range(R)] li_uniq = list(set(li)) return li_uniq def UniqueListStrSingle(self, R): li = [input() for _ in range(R)] li_uniq = list(set(li)) return li_uniq def UniqueListStrMultiple(self, R): li = [sys.stdin.readline().rstrip().split() for _ in range(R)] li_uniq = list(set(li)) return li_uniq def DoubledList(self, l): l1 = l.copy() ret = [None] * (len(l) + len(l1)) ret[::2] = l ret[1::2] = l1 return ret def SplitListDouble(self, l): x, y = [], [] x = l[::2] y = l[1::2] return x, y def str_to_int_sort(str_, x): # 0 = normal, 1 = reverse. unaccept alphabet if x == 0: st = sorted(str_) st = ''.join(map(str, st)) return int(st) elif x == 1: st = list(str_) st.sort(reverse=True) st = ''.join(map(str, st)) return int(st) else: print(-1) def make_divisors(x): l_div, u_div = [], [] i = 1 while i * i <= x: if x % i == 0: l_div.append(i) if i != x // i: u_div.append((x // 1)) i += 1 return l_div + u_div[::-1] def reverse(S): X = [] str = "" for i in range(len(S)): i += 1 X.append(S[-i]) return str.join(X) def permutation(l): return list(it.permutations(l)) def combination(l, p): return list(it.combinations(l, p)) def getNearestNum(l, n): idx = np.abs(np.asarray(l) - n).argmin() return l[idx] def ketanowa(n): x = sum(list(map(int, str(n)))) return x # --instance--# fni = Funcinput() fnl = ListFunc() out = print # --solve--# def solve(): n = int(input()) a = list(input().split()) b = list(input().split()) for i in a: if i in b: continue else: print(i) exit() solve() # te = time.time() # print(te-ts)