当前位置:网站首页>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代码:
归纳下最小公倍数和最大公约数
边栏推荐
- 五、MFC视图窗口和文档
- Kubernetes dashboard deployment application and access
- Plato Farm全新玩法,套利ePLATO稳获超高收益
- 关于url编解码应该选用的函数
- 快速排序(Quick sort)
- Interrupt, signal, system call
- Greed - 376. Swing sequence
- 小程序怎样助力智能家居生态新模式
- Plato Farm通过LaaS协议Elephant Swap,为社区用户带来全新体验
- "Software testing" packaging resume directly improves the pass rate from these points
猜你喜欢

Ten thousand words long text, take you to understand the kubernetes network model

如何使用DevExpress WPF在WinUI中创建第一个MVVM应用程序?

百度云人脸识别

Database knowledge required by testers: MySQL common syntax

Talk about connection pools and threads

Okaleido tiger logged into binance NFT on July 27, and has achieved good results in the first round

杀毒软件 clamav 的安装和使用

"Software testing" packaging resume directly improves the pass rate from these points

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

B-树的应用以及添加和删除操作
随机推荐
Ten thousand words long text, take you to understand the kubernetes network model
基于GoLang实现API短信网关
Manually build ABP framework from 0 -abp official complete solution and manually build simplified solution practice
系统安全测试要怎么做,详细来说说
MySQL 5.7 takes the first item of the group
Goatgui invites you to attend a machine learning seminar
Cookie addition, deletion, modification and query methods
基于.NetCore开发博客项目 StarBlog - (16) 一些新功能 (监控/统计/配置/初始化)
银河证券基金低佣金开户靠谱吗,可靠安全吗
数据资产管理的概念
素因子分解--C(gcc)--PTA
我的爬虫笔记(七) 通过爬虫实现blog访问量+1
杀毒软件 clamav 的安装和使用
Swiperjs custom width
coco test-dev 测试代码
Why do people like to rank things
哪家券商开户买REITs基金比较安全?
Inftnews | "traffic + experience" white lining e Digital Fashion Festival leads the new changes of digital fashion
Jmeter接口测试, 快速完成一个单接口请求
CS224W fall 1.2 Applications of Graph ML