結果
| 問題 |
No.2403 "Eight" Bridges of Königsberg
|
| コンテスト | |
| ユーザー |
ニックネーム
|
| 提出日時 | 2023-08-04 21:50:28 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 212 bytes |
| コンパイル時間 | 207 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 13,184 KB |
| 最終ジャッジ日時 | 2024-10-14 19:47:36 |
| 合計ジャッジ時間 | 7,032 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 21 WA * 10 |
ソースコード
n,m = map(int,input().split())
a = [0]*n; b = [0]*n; c = []
for _ in range(m):
u,v = map(int,input().split())
a[u-1] += 1; b[v-1] += 1
for u,v in zip(a,b):
if u>v: c.append(u-v)
print(max(sum(c)-1,0))
ニックネーム