結果

問題 No.763 Noelちゃんと木遊び
ユーザー %20%20
提出日時 2018-12-11 03:37:12
言語 cLay
(20240714-1)
結果
AC  
実行時間 93 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 2,303 ms
コンパイル使用メモリ 177,680 KB
実行使用メモリ 28,288 KB
最終ジャッジ日時 2024-07-05 13:14:05
合計ジャッジ時間 4,151 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
28,288 KB
testcase_01 AC 23 ms
16,768 KB
testcase_02 AC 54 ms
22,272 KB
testcase_03 AC 37 ms
19,072 KB
testcase_04 AC 26 ms
17,408 KB
testcase_05 AC 36 ms
19,072 KB
testcase_06 AC 88 ms
24,064 KB
testcase_07 AC 88 ms
23,680 KB
testcase_08 AC 42 ms
19,456 KB
testcase_09 AC 27 ms
17,280 KB
testcase_10 AC 14 ms
14,592 KB
testcase_11 AC 91 ms
24,192 KB
testcase_12 AC 74 ms
23,168 KB
testcase_13 AC 74 ms
23,040 KB
testcase_14 AC 70 ms
21,888 KB
testcase_15 AC 41 ms
19,200 KB
testcase_16 AC 10 ms
13,824 KB
testcase_17 AC 42 ms
18,944 KB
testcase_18 AC 93 ms
24,192 KB
testcase_19 AC 87 ms
23,168 KB
testcase_20 AC 82 ms
23,296 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