当前位置:网站首页>2513: 小勇学分数(公约数问题)
2513: 小勇学分数(公约数问题)
2022-07-27 00:36:00 【51CTO】
2513: 小勇学分数
Time Limit: 1 Sec Memory Limit: 128 MB
Submit: 1140
Solved: 794
[
Submit][
Status][
Web Board]
Description
小慧的弟弟小勇刚学分数,小慧想检查弟弟约分是否正确。请你编程序帮帮她吧。
输入m/n 形式的分数,输出约分后的分数(能整除的只输出整数)
Input
两个数m和n(1<=n,m<=1000)
Output
约分后的分数
Sample Input
Sample Output
HINT
提示:输入的数据中注意'/'的匹配,输出结果如果是整数不输出分母
AC代码:
归纳下最小公倍数和最大公约数
边栏推荐
- setTimeout第一个参数应该注意的地方
- 软件测试面试常见问题及答案(发散思维、接口、性能、概念、)
- Concept of data asset management
- c语言:深度学习递归
- 调用JShaman的Web API接口,实现JS代码加密。
- MySQL 5.7 takes the first item of the group
- 测试人需要的数据库知识:MySQL常用语法
- Knowledge points of test questions related to software testing
- shell(38) : ssh端口转发
- 次轮Okaleido Tiger即将登录Binance NFT,引发社区热议
猜你喜欢

ArduinoUNO驱动RGB模块全彩效果示例
![[redis] quick start](/img/42/09f08b4f78bc2ddd4d15693d62cb4b.png)
[redis] quick start

关于url编解码应该选用的函数

Function stack frame explanation

万字长文,带你搞懂 Kubernetes 网络模型

Getlocation:fail the API need to be declared in the requiredprivateinfo field in app.json

函数栈帧详解

数据库读写分离和分库分表

Web3.0世界知识体系分享-什么是Web3.0

Okaleido tiger is about to log in to binance NFT in the second round, which has aroused heated discussion in the community
随机推荐
CS224W fall 1.2 Applications of Graph ML
红宝书第四版的一个错误?
"Software testing" packaging resume directly improves the pass rate from these points
Rust Web(一)—— 自建TCP Server
贪心——376. 摆动序列
次轮Okaleido Tiger即将登录Binance NFT,引发社区热议
CS224W fall 课程 ---- 1.1 why Graphs ?
Ubuntu基于docker的mysql主从数据库配置
Greed - 376. Swing sequence
Function stack frame explanation
Cs224w fall course - --- 1.1 why graphs?
Inftnews | "traffic + experience" white lining e Digital Fashion Festival leads the new changes of digital fashion
人们为什么热衷于给事物排序
【Redis】五种常用的数据类型
Static keyword
Ansible series: do not collect host information gather_ facts: False
解决小程序报错getLocation:fail the api need to be declared in the requiredPrivateInfos field in app.json
[redis] quick start
Web3.0世界知识体系分享-什么是Web3.0
Okaleido tiger logged into binance NFT on July 27, and has achieved good results in the first round