Submission #4240378
Source Code Expand
n,m=map(int,input().split()) h=[i+1 for i in range(n)] nkm=set() for i in range(m): x,y=map(int,input().split()) nkm.add((x,y)) nkm.add((y,x)) mx=-1 for x in range(2**n): hbt=[] for i in range(n): if x&(1<<i): hbt.append(i+1) f=True for i in range(len(hbt)): for j in range(i+1,len(hbt)): if i==j: continue if (hbt[i],hbt[j]) not in nkm: f=False if f: mx=max(mx,len(hbt)) print(mx)
Submission Info
Submission Time | |
---|---|
Task | A - 正直者 |
User | tanishi14 |
Language | PyPy3 (2.4.0) |
Score | 0 |
Code Size | 527 Byte |
Status | RE |
Exec Time | 2108 ms |
Memory | 916440 KB |
Judge Result
Set Name | all | ||||||
---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 100 | ||||||
Status |
|
Set Name | Test Cases |
---|---|
all | 00_sample_01.txt, 00_sample_02.txt, kensho_diff01, kensho_diff02, kensho_diff03, kensho_diff04, kensho_diff05, kensho_min-max01, kensho_min-max02, kensho_min-max03, kensho_min-max04, kensho_min-max05, kensho_min-max06, kensho_min-max07, kensho_min-max08, kensho_min-max09, kensho_min-max10, kensho_rand01, kensho_rand02, kensho_rand03, kensho_rand04, kensho_rand05, kensho_rand06, kensho_rand07, kensho_rand08, kensho_rand09, kensho_rand10 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | RE | 172 ms | 38256 KB |
00_sample_02.txt | TLE | 2107 ms | 916440 KB |
kensho_diff01 | RE | 180 ms | 39536 KB |
kensho_diff02 | RE | 181 ms | 40176 KB |
kensho_diff03 | RE | 174 ms | 42480 KB |
kensho_diff04 | RE | 174 ms | 40944 KB |
kensho_diff05 | RE | 171 ms | 39536 KB |
kensho_min-max01 | TLE | 2107 ms | 916440 KB |
kensho_min-max02 | TLE | 2107 ms | 916440 KB |
kensho_min-max03 | RE | 168 ms | 38256 KB |
kensho_min-max04 | RE | 170 ms | 38256 KB |
kensho_min-max05 | TLE | 2108 ms | 916440 KB |
kensho_min-max06 | RE | 176 ms | 38256 KB |
kensho_min-max07 | TLE | 2107 ms | 916440 KB |
kensho_min-max08 | TLE | 2107 ms | 916440 KB |
kensho_min-max09 | TLE | 2107 ms | 916440 KB |
kensho_min-max10 | RE | 174 ms | 38256 KB |
kensho_rand01 | TLE | 2107 ms | 916440 KB |
kensho_rand02 | MLE | 296 ms | 123368 KB |
kensho_rand03 | TLE | 2107 ms | 916440 KB |
kensho_rand04 | MLE | 1262 ms | 524772 KB |
kensho_rand05 | MLE | 485 ms | 170076 KB |
kensho_rand06 | TLE | 2070 ms | 916440 KB |
kensho_rand07 | MLE | 1247 ms | 524772 KB |
kensho_rand08 | MLE | 1691 ms | 731784 KB |
kensho_rand09 | MLE | 1704 ms | 731804 KB |
kensho_rand10 | TLE | 2107 ms | 916440 KB |