第49期:Codeforces-Round #774(Div.2)

本文详细介绍了Codeforces Round #774(Div.2)比赛中的六道算法题,包括A. Square Counting、B. Quality vs Quantity、C. Factorials and Powers of Two、D. Weight the Tree、E. Power Board和F. Playing Around the Table(waiting)。每道题目提供了关键标签和思路,涉及数学、暴力求解、构造算法、贪心策略、排序、动态规划等多个方面。
摘要由CSDN通过智能技术生成

目录

​​​​​​A. Square Counting(tags:    math;   *800)

B. Quality vs Quantity(tags:    brute force;    constructive algorithms;     greedy;      sorting;    two pointers;  *800)

C. Factorials and Powers of Two(tags:    bitmasks;     brute force;    constructive algorithms;     math;      *1500)

D. Weight the Tree (tags:     constructive algorithms;    dfs and similar;     dp;     implementation;    trees;     *2000)

E. Power Board(tags:     brute force;  dp;  math; number theory; *2200)

F. Playing Around the Table(waiting)(tags:   constructive algorithms;     greedy;      implementation;      *2900)


​​​​​​A. Square Counting

tags:    math;   *800

思路:意思就是s最多包含多少个n^{2}

#include<bits/stdc++.h>
#define int long long
using namespace std;
int t,n,s;
signed main(){
	cin>>t;
	while(t--){
		cin>&g
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值