摘要:
虽然没读懂题意,按照样例模拟交了一发直接过了。。。 double a[3][3]; int main() { for(int i=0;i<3;i++) for(int j=0;j<3;j++) cin>>a[i][j]; double res=1; for(int i=0;i<3;i++) { in 阅读全文
posted @ 2021-01-03 19:06
Dazzling!
阅读(38)
评论(0)
推荐(0)
摘要:
统计叶子结点数目 \(BFS\) const int N=110; vector<int> g[N]; int dep[N]; int cnt[N]; int maxh; int n,m; void bfs(int u) { queue<int> q; q.push(u); dep[u]=1; wh 阅读全文
posted @ 2021-01-03 11:40
Dazzling!
阅读(79)
评论(0)
推荐(0)
摘要:
水题了,注意删除相乘后系数为0的项 const int N=1010; int p[2][N]; double a[2][N]; map<int,double,greater<int> > mp; int n,m; int main() { cin>>n; for(int i=0;i<n;i++) 阅读全文
posted @ 2021-01-03 10:32
Dazzling!
阅读(63)
评论(0)
推荐(0)
摘要:
水~ int n; int main() { cin>>n; int sum=0; int now=0; for(int i=0;i<n;i++) { int x; cin>>x; if(x > now) sum+=6*(x-now); else sum+=4*(now-x); sum+=5; no 阅读全文
posted @ 2021-01-03 10:09
Dazzling!
阅读(79)
评论(0)
推荐(0)

浙公网安备 33010602011771号