Codeforces Round #262 (Div. 2) A
来源:互联网 发布:浪潮软件利好消息 编辑:程序博客网 时间:2024/06/05 15:32
题目:
题意分析:
水题一枚,花样模拟一下就KO了。
代码:
#include <cstdio>#include <cmath>#include <algorithm>#include <cstring>#include <iostream>using namespace std;int main(){ int m,n,cou,ans; while(cin>>n>>m) { cou=1; ans=0; while(n--) { if(cou%m==0) n++; ans++; cou++; } printf("%d\n",ans); }}
0 0
- Codeforces Round #262 (Div. 2) A
- Codeforces Round #262 (Div. 2) A,B,C
- Codeforces Round #262 (Div. 2)-A,B,C,D
- Codeforces Round #262 (Div. 2) A. Vasya and Socks
- Codeforces Round #131 (Div. 2) A B
- Codeforces Round #174 (Div. 2) Problem A
- Codeforces Round #173 (Div. 2) A.Bit++
- Codeforces Round #181 (Div. 2) A题
- Codeforces Round #184 (Div. 2) A题
- Codeforces Round #185 (Div. 2)--A,B
- Codeforces Round #172 (Div. 2) A题
- Codeforces Round #166 (Div. 2) A题
- Codeforces Round #132 (Div. 2) A题
- Codeforces Round #131 (Div. 2) A题
- Codeforces Round #133 (Div. 2) A题
- Codeforces Round #137 (Div. 2) A题
- Codeforces Round #138 (Div. 2) A题
- Codeforces Round #147 (Div. 2) A题
- 提高UITableView性能的三种方法
- 客户端接入支付宝过程遇到的错误(版本号:1.0)
- 常见网络编程面试题整理
- HDFS Short-Circuit Local Reads
- OC的命名方法--转载
- Codeforces Round #262 (Div. 2) A
- QPixmap
- javascript中"=="和"==="区别
- 苹果所有常用证书,appID,Provisioning Profiles配置说明及制作图文教程(精)
- 快速排序
- javascript常用加入收藏与设为首页代码
- MFC内部运行来龙去脉追踪
- shell编程空格的使用
- Android系统onKeyDown监控/拦截/监听/屏蔽返回键、菜单键和Home键