简单的a+b(Python代码)
摘要:解题思路:while实现多组数据输入测试,用map函数实现输入,print语句输出注意事项:参考代码:while True: try: a,b=map(int,input().st……
简单的a+b(java代码)
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main{ public static void main(String[] args){ ……
简单的a+b(c++代码)
摘要:解题思路:注意事项:参考代码:解法一:#include <cstdio> int main(){ int a,b; while(scanf("%d%d",&a,&b)!=EOF)//也可以写成whil……
简单的a+b(c语言代码)
摘要:解题思路:定义两个数a和b,然后用scanf语句输入这两个数,最后用printf语句输出a+b注意事项:注意本题要求多组测试数据,使用while(scanf("%d%d",&a,&b)!=EOF)实现……
1000: [竞赛入门]简单的a+b(Python代码)
摘要:####**解题思路:**
1.**输入**a,b,用**map**函数实现
2.**while**实现**循环**
3.**try except**实现出现异常时**退……
C++ 题解,初始程序就是答案!
摘要:#include<iostream>
using namespace std;
int main() {
int a,b;
while (cin >> a >> b) {
……
笑死,根本没动,他给的格式就是题解
摘要:解题思路:没有注意事项:没有(别自己乱写,直接用他给的格式参考代码:#include <stdio.h>int main(){ int a,b; while(~scanf("%d%d", ……
1000: [竞赛入门]简单的a+b
摘要: #include
int main()
{
int a,b;
//定义两个变量a,b
while(~scanf("%d%d",&a,&b))
//非零则继续循环~……
while 连续输入值(简单的a+b)
摘要:解题思路:使用while 语句输入的小技巧注意事项:注意连续输入参考代码:#include<stdio.h>int main(){ int a,b,t; while(scanf("%d %……