您当前的位置: 首页 > 

对方正在debug

暂无认证

  • 6浏览

    0关注

    399博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Codeforces Round #599 (Div. 2)

对方正在debug 发布时间:2019-11-09 23:55:13 ,浏览量:6

题目链接:https://codeforces.com/contest/1243

C. Tile Painting

题意:给定一个长度为n的布条,要求间隔差为n的因子的位置对应的颜色要相同,求最多能染多少种颜色。 题解:本质就是找质因子公约数,傻逼题,但是窝为啥wa了好几发,,

#include
using namespace std;
#define ll long long
int main()
{
    ll n;
    scanf("%I64d",&n);
    ll h=n;
    ll m=sqrt(n);
    ll ans=n;
    for(ll i=2;i*i            
关注
打赏
1664895754
查看更多评论
0.0389s