HDU 5158Have meal
来源:互联网 发布:淘宝上禁止发布商品 编辑:程序博客网 时间:2024/05/29 03:21
本题为简单的数学题目,没别的好说的,下面附上AC代码
这里写代码片#include<cstdio>#include<cstring>#include<algorithm>#include <iostream>using namespace std;int main() { int n, m; while (cin>>n>>m) { int x; x=m%n; if (x==0)cout<<n-1<<endl; else cout<<x-1<<endl; } return 0; }
1 0
- HDU 5158 Have meal
- HDU 5158 Have meal
- HDU 5158Have meal
- hdu 5158 Have meal(模拟)
- Have meal
- 【CUGBACM15级BC第26场 A】hdu 5158 Have meal
- BestCoder Round #26 HDU5158 Have meal
- My colleagues and have a good and big meal tonight...
- HDU5158Have meal
- Meal WaitPerson and Chef
- sweet and other meal
- Codeforces876A-Trip For Meal
- A. Trip For Meal
- A. Trip For Meal
- hdu2546 The meal card
- Trip For Meal
- A problem with my meal
- HDU 4723 How Long Do You Have to Draw
- chmod 600 .ssh/authorized_keys修改权限
- Java 入门 之 Socket 服务器通信
- MSF - searchengine_subdomains_collector
- Android安全攻防战,反编译与混淆技术完全解析(上)
- WebRTC 学习笔记(2)--libjingle 部分 (P2P传输)
- HDU 5158Have meal
- 在linux字符界面中如何查看网页
- MYSQL 重命名表
- 安卓开发,关于静态图显示,缩放以及旋转
- android 手势触发图片缩放拖动(包含缩放图片时图片的大小判断以及拖动图片时图片的边界判断)
- linux设备模型-kobject
- 解决 cmake_symlink_library: System Error: Operation not supported
- liunx 常用命令
- c++ 数据结构 哈夫曼树