当前位置:网站首页>Noi OJ 1.3 04: C language with remainder Division
Noi OJ 1.3 04: C language with remainder Division
2022-06-23 10:29:00 【chd44】
describe
Given divisor and divisor , Find integer quotient and remainder .
In this question, please use the default division and remainder operation , No special treatment of the results is required . See how the program results differ from the mathematical definition ?
Input
a line , Contains two integers , Divisor and divisor in turn ( Divisor non-zero ), Separated by a space .
Output
a line , Contains two integers , Integer quotient and remainder in turn , Separated by a space .
#include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
printf("%d %d",a/b,a%b);
return 0;
}notes : I feel like I have nothing to say ,/ Expressed as an integral Division ,% For the sake of surplus .
边栏推荐
猜你喜欢

Dr. Sun Jian was commemorated at the CVPR conference. The best student thesis was awarded to Tongji Ali. Lifeifei won the huangxutao Memorial Award

SQL create a new field based on the comparison date

开源二进制文件静态漏洞分析工具BinAbsInspector安装使用

Cloud native database Amazon RDS

Successful experience of postgraduate entrance examination in materials and Chemical Engineering (metal) of Beijing University of Aeronautics and Astronautics in 2023

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

Lying trough, the most amazing paper artifact!

JVM easy start-01

Unity technical manual - shape sub module - Sprite, spriterenderer and velocity over lifetime

Liujinhai, architect of zhongang Mining: lithium battery opens up a Xintiandi for fluorine chemical industry
随机推荐
Cloud native database Amazon RDS
Bi SQL drop & alter
JVM简单入门-01
NOI OJ 1.2 10:Hello, World!的大小 C语言
Unity technical manual - lifecycle lifetimebyemitterspeed - color in the cycle coloroverlifetime- speed color colorbyspeed
NOI OJ 1.4 04:奇偶ASCII值判断 C语言
天龙八部TLBB系列 - 网单服务端各目录文件说明【超详细】
Build the information and innovation industry ecology, and make mobile cloud based on the whole stack of independent innovation
What is a good quick development framework like?
太无奈!微软停售 AI 情绪识别等技术,直言:“法律跟不上 AI 的发展”
NOI OJ 1.2 整型与布尔型的转换 C语言
RT thread add MSH command
Solve the problem that Preview PDF cannot be downloaded
OpenCloudOS使用snap安装.NET 6
sql编写问题,求出当月和上月的环比值
Too helpless! Microsoft stopped selling AI emotion recognition and other technologies, saying frankly: "the law can not keep up with the development of AI"
NOI OJ 1.3 13:反向输出一个三位数 C语言
NOI OJ 1.3 11:计算浮点数相除的余数 C语言
R和RStudio下载安装详细步骤
个人博客系统毕业设计开题报告