C - Playing with Numbers(Kattis - playingwithnumbers)
题目链接:Playing with Numbers
分类讨论:N=1,2,>2的情况;
N>2的情况如下(过于简陋请见谅)
#include<iostream>
#include<cstdio>
#include<algorithm>
#include<string>
#include<cstring>
#include<cmath>
using namespace std;
const int maxn=5e4+10;
原创
2020-11-18 18:56:07 ·
123 阅读 ·
0 评论