2382专题

SSL 2382 2383 2384 2385 k好数 睡眠 字符串 猜数

提醒:题目在最后,都是水题。 (1)k好数 分析: 模拟,然后如果要优化。 两种方法: (1)视为 k + 1 k+1 k+1进制:请看链接:借鉴 (2)碰到不符合的跳到符合的(我的方法) 代码 #include <cstdio>using namespace std;int n,m,i=1,ans;int main(){freopen("knumber.in","r",s