結果
| 問題 |
No.479 頂点は要らない
|
| コンテスト | |
| ユーザー |
tookunn_1213
|
| 提出日時 | 2017-01-28 00:57:34 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 285 bytes |
| コンパイル時間 | 255 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 44,060 KB |
| 最終ジャッジ日時 | 2024-12-23 18:32:58 |
| 合計ジャッジ時間 | 9,678 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 38 |
ソースコード
N,M = map(int,input().split()) graph = [[] for i in range(N)] p = [list(map(int,input().split())) for i in range(M)] p = sorted(p,reverse=True) ans = 0 s = set() for i in range(M): if p[i][1] in s: continue s.add(p[i][0]) for i in s: print(i) ans += (1<<i) print(format(ans,'b'))
tookunn_1213