結果
問題 |
No.2733 Just K-times TSP
|
ユーザー |
|
提出日時 | 2024-04-15 06:50:43 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 458 bytes |
コンパイル時間 | 377 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 52,480 KB |
最終ジャッジ日時 | 2024-10-11 13:07:57 |
合計ジャッジ時間 | 2,837 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 32 |
ソースコード
from sys import stdin def read(): line = stdin.readline() if not line: raise EOFError assert line[-1] == "\n" line = line[:-1] assert line.strip() == line return line N, M, K = map(int, read().split()) assert(1 <= N <= 6) assert(0 <= M <= N * (N - 1) // 2) assert(1 <= K <= 8) s = set() for _ in range(M): u, v = map(int, read().split()) assert(1 <= u < v <= N) s.add((u, v)) assert(len(s) == M) try: read() assert False except EOFError: pass