【Hacker Rank】04.Arithmetic Operators
来源:互联网 发布:3ds数据搬家 编辑:程序博客网 时间:2024/06/05 15:23
Code:
# Enter your code here. Read input from STDIN. Print output to STDOUT# -*- coding:UTF-8 -*-def operation(): a = int(raw_input()) b = int(raw_input()) while 1 <= a <= 10 ** 10 and 1 <= b <= 10 ** 10: sum = a + b sub = a - b mul = a * b print sum print sub print mul breakif __name__ == "__main__": operation()
0 0
- 【Hacker Rank】04.Arithmetic Operators
- Arithmetic Operators
- 14.7 Arithmetic operators
- Using Arithmetic Operators
- 【Hacker Rank】06.Loops
- 算术运算符(Arithmetic Operators)
- 14.3. Arithmetic and Relational Operators
- 【Hacker Rank】05.Python: Division
- 【Hacker Rank】08.Print function
- Arithmetic: Creating Expressions With Variables And Operators
- Add two numbers without using arithmetic operators
- 【Hacker Rank】02.Reading Raw Input
- 【Hacker Rank】03.Python If-Else
- 【Hacker Rank】07.Write a function
- Hacker Rank: Gridland Metro解题报告
- Arithmetic Operators 算术操作符 oacle/mssql 对比
- Leetcode 503,Add two numbers without using arithmetic operators
- Hacker Rank的一道题:Sherlock and the Beast
- 漫谈redis在运维数据分析中的去重统计方式
- 305201 - Description: Check for duplicate invoices
- Web系统大规模并发——电商秒杀与抢购
- 深入应用c++11读书笔记--使用c++11让程序更简洁、更现代-2.自己实现一个支持范围for循环的类~
- 清博大数据API开放了,在开放API当中脱颖而出的竟然是他!!!!!!!
- 【Hacker Rank】04.Arithmetic Operators
- 插件原理整理
- 第11章:Sampling methods exercise 1-14
- PAT甲级1006
- IOS TableView的Cell高度自适应,UILabel自动换行适应
- MySQL 数据库 备份与恢复
- 最熟悉的陌生人:ListView 中的观察者模式
- 构建shadowsocks服务器并局域网共享
- ECMAScript6笔记:Iterator和for...of循环