当前位置:网站首页>NOI OJ 1.3 04:带余除法 C语言
NOI OJ 1.3 04:带余除法 C语言
2022-06-23 10:12:00 【chd44】
描述
给定被除数和除数,求整数商及余数。
此题中请使用默认的整除和取余运算,无需对结果进行任何特殊处理。看看程序运行结果与数学上的定义有什么不同?
输入
一行,包含两个整数,依次为被除数和除数(除数非零),中间用一个空格隔开。
输出
一行,包含两个整数,依次为整数商和余数,中间用一个空格隔开。
#include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
printf("%d %d",a/b,a%b);
return 0;
}注:感觉没什么好说的,/表示为整除,%为求余。
边栏推荐
- 同花顺是炒股的么?在线开户安全么?
- Distributed common interview questions
- Golang quick start (1)
- 验证码redis实践总结
- How to solve the problem that easycvr does not display the interface when RTMP streaming is used?
- Spring recruitment interview experience summary (technical post)
- Simple understanding of quick sort
- 云原生数据库-Amazon RDS
- ICLR 2022 | dynamic convolution tadaconv in video and efficient convolution video understanding model tadaconvnext
- 同花顺推荐么?手机开户安全么?
猜你喜欢

Build the information and innovation industry ecology, and make mobile cloud based on the whole stack of independent innovation

AI芯片技术-2022年

太无奈!微软停售 AI 情绪识别等技术,直言:“法律跟不上 AI 的发展”

开发者,你对云计算可能有些误解

Nuxt.js spa与ssr的区别

Cool photo album code, happy birthday to the object!

Fill the pit for repvgg? In fact, it is the repoptimizer open source of repvgg2

Alimentation des animaux de compagnie basée sur stm32

JVM简单入门-01

JVM简单入门-02
随机推荐
2021-04-16 recursion
解决audio自动播放无效问题
搭建一个点歌QQ机器人,另外还能看美女
Build the information and innovation industry ecology, and make mobile cloud based on the whole stack of independent innovation
2021-05-12接口的定义与实现
The second Tencent light · public welfare innovation challenge was launched, and the three competition topics focused on the social value of sustainable development
Mathematical analysis_ Notes_ Chapter 2: real and plural numbers
Comic | code review is driving me crazy!
2021-04-16递归
How does thymeleaf get the value of the request parameter in the URL?
After the uncommitted transactions in the redo log buffer of MySQL InnoDB are persisted to the redo log, what happens if the transaction rollback occurs? How does the redo log handle this transaction
搭建一个QQ机器人叫女友起床
Build a QQ robot to wake up your girlfriend
What is JSX in the JS tutorial? Why do we need it?
Form repeated submission problem
一个优秀速开发框架是什么样的?
[day 23] given an array of length N, insert element x into the position specified by the array | array insertion operation 4
Data structures and differences between MySQL InnoDB engine and MyISAM
基于STM32设计的宠物投喂器
解决预览pdf不能下载的问题