結果

問題 No.763 Noelちゃんと木遊び
ユーザー %20%20
提出日時 2018-12-11 03:37:12
言語 cLay
(20240104-1)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 1,878 ms
コンパイル使用メモリ 164,864 KB
実行使用メモリ 30,376 KB
最終ジャッジ日時 2023-09-19 00:13:58
合計ジャッジ時間 4,139 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
30,376 KB
testcase_01 AC 26 ms
18,808 KB
testcase_02 AC 66 ms
23,516 KB
testcase_03 AC 42 ms
20,876 KB
testcase_04 AC 28 ms
19,412 KB
testcase_05 AC 38 ms
20,688 KB
testcase_06 AC 87 ms
25,160 KB
testcase_07 AC 80 ms
24,788 KB
testcase_08 AC 39 ms
21,140 KB
testcase_09 AC 26 ms
19,176 KB
testcase_10 AC 13 ms
17,008 KB
testcase_11 AC 82 ms
25,352 KB
testcase_12 AC 74 ms
24,252 KB
testcase_13 AC 62 ms
24,292 KB
testcase_14 AC 59 ms
23,196 KB
testcase_15 AC 38 ms
20,776 KB
testcase_16 AC 11 ms
16,628 KB
testcase_17 AC 37 ms
21,116 KB
testcase_18 AC 84 ms
25,176 KB
testcase_19 AC 72 ms
24,348 KB
testcase_20 AC 76 ms
24,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll n,r,u[2d5];set<ll>v[2d5];ll f(ll j,ll p){ll a=1;for(ll x:v[j])a&=x-p?f(x,j):1;r+=a;return!a;}{rd(n,u(n*2-2));rep(i,n*2-2)v[u[i]].insert(u[i^1]);f(1,1);wt(r);}
0