当前位置:网站首页>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;
}注:感觉没什么好说的,/表示为整除,%为求余。
边栏推荐
- Bioinformatics | effective drug target correlation prediction based on interacting neural network
- MySQL-02.工作中对索引的理解
- Simple understanding of quick sort
- AI芯片技术-2022年
- Build the information and innovation industry ecology, and make mobile cloud based on the whole stack of independent innovation
- 2021-05-11 static keyword
- 2021-04-12 the first implementation of linked list!!!
- 2021-04-16递归
- 漫画 | Code Review快把我逼疯了!
- 2021-04-12 链表第一次实现!!!
猜你喜欢

MySQL基础-笔记

Is there anyone who plans to open source an industrial "seckill" system architecture?

Lying trough, the most amazing paper artifact!

JVM简单入门-02

Go string comparison

JVM简单入门-01

Pycharm installation tutorial, super detailed

2021-05-07 constructor

Mathematical analysis_ Notes_ Chapter 2: real and plural numbers

Cool photo album code, happy birthday to the object!
随机推荐
个人博客系统毕业设计开题报告
[software and system security] heap overflow
Successful experience of postgraduate entrance examination in materials and Chemical Engineering (metal) of Beijing University of Aeronautics and Astronautics in 2023
基于STM32设计的宠物投喂器
CVPR大会现场纪念孙剑博士,最佳学生论文授予同济阿里,李飞飞获黄煦涛纪念奖...
High performance computing center Infiniband overview
数值计算方法
Unity技术手册 - 形状(Shape)子模块 - Sprite、SpriteRenderer及生命周期内速度(Velocity over Lifetime)
What is JSX in the JS tutorial? Why do we need it?
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
同花顺推荐么?手机开户安全么?
天龙八部TLBB系列 - 网单服务端各目录文件说明【超详细】
MySQL-01.工作中数据库优化和explain字段知识的总结
Data structures and differences between MySQL InnoDB engine and MyISAM
Bugs encountered in Oracle
How does thymeleaf get the value of the request parameter in the URL?
同花顺是炒股的么?在线开户安全么?
Go language JSON processing
实现领域驱动设计 - 使用ABP框架 - 通用准则
Mysql-03.工作中对SQL优化的心得体会