結果
問題 |
No.3078 Difference Sum Query
|
ユーザー |
![]() |
提出日時 | 2025-06-12 13:46:22 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 357 bytes |
コンパイル時間 | 542 ms |
コンパイル使用メモリ | 67,752 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-06-12 13:46:34 |
合計ジャッジ時間 | 2,767 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 26 |
ソースコード
#include <iostream> using namespace std; int main() { int n, m; cin >> n >> m; // 读取并忽略后续的边信息 for (int i = 0; i < m; ++i) { int u, v, w; cin >> u >> v >> w; } // 直接输出n即可,因为每个顶点恰好访问一次,边权均为1,总共有n条边 cout << n << endl; return 0; }