結果
| 問題 |
No.479 頂点は要らない
|
| コンテスト | |
| ユーザー |
compass19
|
| 提出日時 | 2017-02-16 21:28:11 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 235 bytes |
| コンパイル時間 | 157 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 65,676 KB |
| 最終ジャッジ日時 | 2024-12-30 01:01:29 |
| 合計ジャッジ時間 | 35,498 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 TLE * 13 |
ソースコード
n,m=map(int,input().split())
e={i:set() for i in range(n)}
a=set()
for _ in range(m):
s,l=map(int,input().split())
e[l].add(s)
for i in range(n-1, -1, -1):
if i not in a:a|=e[i]
r=0
for i in a:r+=2**i
print(format(r, 'b'))
compass19