[竞赛入门]简单的a+b-题解(C语言代码) 摘要:闲着无聊,写个小程序打发时间。 #include int main() { int a,b; while(~scanf("%d %d",&a,&b)) printf("%d",a+b…… 题解列表 2019年10月11日 0 点赞 0 评论 3439 浏览 评分:7.3
[竞赛入门]简单的a+b-题解(Java代码) 摘要:解题思路:注意事项:注意此题是多组测试数据参考代码:import java.util.Scanner; public class Main { public static void main…… 题解列表 2021年01月10日 0 点赞 0 评论 478 浏览 评分:7.3
简单的a+b 题解 摘要:解题思路:hj注意事项:a参考代码:#include<stdio.h>int main(){ int a,b; while(~scanf("%d%d", &a, &b))printf("%…… 题解列表 2021年06月20日 0 点赞 0 评论 1263 浏览 评分:7.3
[竞赛入门]简单的a+b 摘要:解题思路:注意事项:注意符号和细节的东西参考代码#include<stdio.h>int main(){ int a=0,b=0; while(~scanf("%d%d", &a, &b)…… 题解列表 2021年11月10日 0 点赞 1 评论 164 浏览 评分:7.3
简单的a+b(c++代码) 摘要:解题思路:注意事项:参考代码:解法一:#include <cstdio> int main(){ int a,b; while(scanf("%d%d",&a,&b)!=EOF)//也可以写成whil…… 题解列表 2022年07月27日 0 点赞 0 评论 581 浏览 评分:7.3
[竞赛入门]简单的a+b 摘要:解题思路:注意事项:参考代码:while True: a,b = map(int,input().split()) if a > 2**10 or b > 2**10: br…… 题解列表 2022年01月16日 0 点赞 0 评论 734 浏览 评分:7.2
[竞赛入门]简单的a+b-题解(Python代码) 摘要:``` while True: try: a,b = map(int, input().strip().split()) if a > 2**10 or…… 题解列表 2019年12月08日 0 点赞 0 评论 1586 浏览 评分:7.1
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,add; printf("请输入两个数:/n"); scanf("%d %d",&a…… 题解列表 2017年08月05日 0 点赞 0 评论 796 浏览 评分:7.0
输出a+b - python 摘要:解题思路:首先input输入两个int型整数,然后求和打印出来注意事项:while可以一直循环参考代码:while True: a,b = map(int,input().split()) …… 题解列表 2021年03月26日 0 点赞 0 评论 910 浏览 评分:7.0
有事找出家人 摘要:解题思路:原题链接:[竞赛入门]简单的a+b[编码入门]简单的a+b题解(C语言代码)代码中使用到“!=EOF”,EOF是一个计算机术语,为“End Of File”的缩写,是文件结尾标志;“!=EO…… 题解列表 2021年11月07日 0 点赞 12 评论 274 浏览 评分:6.9