100 Accepted
foo.cc: In function 'void dfs(int, int)': foo.cc:14:15: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions] 14 | for (auto [y,z]:adj[x]){ | ^ foo.cc:15:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 15 | if (y==f) continue; dfs(y,x); | ^~ foo.cc:15:29: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 15 | if (y==f) continue; dfs(y,x); | ^~~ foo.cc:19:15: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions] 19 | for (auto [y,z]:adj[x]){ | ^ foo.cc: In function 'void solve()': foo.cc:27:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 27 | for (int i=1;i<=n;i++) adj[i].clear(); inv[1]=1; | ^~~ foo.cc:27:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 27 | for (int i=1;i<=n;i++) adj[i].clear(); inv[1]=1; | ^~~ foo.cc:36:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 36 | for (int i=1;i<=k;i++) vis[read()]=1; int coef=1; | ^~~ foo.cc:36:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 36 | for (int i=1;i<=k;i++) vis[read()]=1; int coef=1; | ^~~ foo.cc: In function 'int main()': foo.cc:44:9: warning: unused variable 'c' [-Wunused-variable] 44 | int c=read(),T=read();while (T--) solve();return 0; | ^
# | 状态 分数 | 耗时 | 内存占用 |
---|
#1 | Accepted 4 | 3ms | 2.6 MiB |
#2 | Accepted 4 | 3ms | 2.6 MiB |
#3 | Accepted 4 | 3ms | 2.6 MiB |
#4 | Accepted 4 | 217ms | 16.9 MiB |
#5 | Accepted 4 | 226ms | 17.1 MiB |
#6 | Accepted 4 | 219ms | 17.1 MiB |
#7 | Accepted 4 | 209ms | 17.1 MiB |
#8 | Accepted 4 | 219ms | 17 MiB |
#9 | Accepted 4 | 223ms | 17.1 MiB |
#10 | Accepted 4 | 226ms | 17.2 MiB |
#11 | Accepted 4 | 3ms | 2.6 MiB |
#12 | Accepted 4 | 3ms | 2.6 MiB |
#13 | Accepted 4 | 3ms | 2.6 MiB |
#14 | Accepted 4 | 3ms | 2.6 MiB |
#15 | Accepted 4 | 3ms | 2.7 MiB |
#16 | Accepted 4 | 201ms | 15.1 MiB |
#17 | Accepted 4 | 176ms | 15.1 MiB |
#18 | Accepted 4 | 107ms | 15 MiB |
#19 | Accepted 4 | 76ms | 8.1 MiB |
#20 | Accepted 4 | 77ms | 8.1 MiB |
#21 | Accepted 4 | 77ms | 8.1 MiB |
#22 | Accepted 4 | 30ms | 4.9 MiB |
#23 | Accepted 4 | 27ms | 4.9 MiB |
#24 | Accepted 4 | 226ms | 13.6 MiB |
#25 | Accepted 4 | 237ms | 13.7 MiB |
代码
信息
- 递交者
- 题目
- NOIP2024CGF NOIP2024CGF
- 比赛
- 【官方数据 ZJ】 NOIP2024 批量测试
- 语言
- C++14(O2)
- 代码长度
- 1.4 KiB
- 递交时间
- 2024-12-6 17:59:24
- 评测时间
- 2024-12-6 18:05:58
- 分数
- 100
- 总耗时
- 2795ms
- 峰值时间
- 237ms
- 峰值内存
- 17.2 MiB