#include <bits/stdc++.h>
using namespace std;
int main( void )
{
//内存变量
int a,b;
int ans;
//1.输入
cin>>a>>b;
//代码的核心
ans=a+b;
//2.输出
cout<<ans<<endl;
return 0;
}
//思考题:计算机正在运行的程序在哪儿运行?
python3代码
"""
1.3编程基础之算术表达式与顺序执行 04 带余除法--10分
http://noi.openjudge.cn/ch0103/01/
基于python 取余问题(%)详解
https://www.jb51.net/article/187978.htm
"""
import math
a, b = map(int, input().split())
result = a/b
if result >= 0:
result = math.floor(result)
else:
result = math.ceil(result)
print(result, a - (result*b), sep=' ')
参考:
基于python 取余问题(%)详解
https://www.jb51.net/article/187978.htm
"""
1.3编程基础之算术表达式与顺序执行 04 带余除法--7分
http://noi.openjudge.cn/ch0103/01/
"""
s = input().split()
print( int ( s[0] / s[1] ) ,end=" ")
print( int ( s[0] % s[1] ) )