結果
問題 | No.2270 T0空間 |
ユーザー | MasKoaTS |
提出日時 | 2023-02-22 18:31:27 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 944 bytes |
コンパイル時間 | 1,150 ms |
コンパイル使用メモリ | 86,736 KB |
実行使用メモリ | 87,968 KB |
最終ジャッジ日時 | 2023-09-30 01:46:42 |
合計ジャッジ時間 | 13,140 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 224 ms
80,900 KB |
testcase_01 | AC | 217 ms
80,904 KB |
testcase_02 | AC | 226 ms
80,812 KB |
testcase_03 | AC | 223 ms
80,912 KB |
testcase_04 | AC | 222 ms
81,040 KB |
testcase_05 | AC | 220 ms
80,972 KB |
testcase_06 | AC | 217 ms
80,812 KB |
testcase_07 | AC | 222 ms
80,812 KB |
testcase_08 | AC | 228 ms
80,848 KB |
testcase_09 | AC | 227 ms
80,908 KB |
testcase_10 | AC | 229 ms
80,812 KB |
testcase_11 | AC | 1,570 ms
87,968 KB |
testcase_12 | AC | 1,435 ms
86,424 KB |
testcase_13 | TLE | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
ソースコード
import itertools as iter import collections as coll import heapq as hq import bisect as bis from decimal import Decimal as dec from functools import cmp_to_key import math import sys #import pypyjit #pypyjit.set_param('max_unroll_recursion=-1') sys.setrecursionlimit(10 ** 6) inp = sys.stdin.readline input = lambda : inp().rstrip() getN = lambda : int(inp()) getNs = lambda : map(int, inp().split()) getList = lambda :list(map(int, inp().split())) getStrs = lambda n : [input() for _ in [0] * n] def yexit(): print("Yes"); exit(0) def nexit(): print("No"); exit(0) pi = 3.141592653589793 mod = 1000000007 MOD = 998244353 INF = 4611686018427387903 dx = [1, 0, -1, 0]; dy = [0, 1, 0, -1] #di = coll.defaultdict(int) """ Main Code """ n = getN() m = getN() s = getStrs(m) st = set([]) for ss in s: for i, (a, b) in enumerate(iter.combinations(ss, 2)): if(a == b): continue st.add(i) if(len(st) == n * (n - 1) // 2): yexit() nexit()