結果
問題 |
No.2638 Initial fare
|
ユーザー |
👑 |
提出日時 | 2024-02-19 21:25:51 |
言語 | cLay (20241019-1) |
結果 |
WA
|
実行時間 | - |
コード長 | 132 bytes |
コンパイル時間 | 1,995 ms |
コンパイル使用メモリ | 173,864 KB |
実行使用メモリ | 9,216 KB |
最終ジャッジ日時 | 2024-09-29 01:21:19 |
合計ジャッジ時間 | 3,550 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 25 |
ソースコード
ll@N,@--(U,V)[N-1],E[N]{},a=N-1;REP(i,N-1)E[U[i]]++,E[V[i]]++;REP(i,N)a+=E[i]*E[i]-1/2;REP(i,N-1)a+=(E[U[i]]-1)*(E[V[i]]-1)/2;wt(a);