A+B

hust08p01 Reply 7 years 24 weeks ago
A+B is so easy...
hust08p01 Reply 7 years 24 weeks ago
Have a try
Sempr Reply 7 years 24 weeks ago
good hzh is a good guy!
boskijr Reply 7 years 24 weeks ago
中文
flytiger Reply 6 years 46 weeks ago
求鄙视
miao244233503 Reply 6 years 14 weeks ago
A+B is not so easy... 我感觉题目有点表述不清啊,还是我理解能力不行?囧…… 如果输入多个数对呢?如何判断输入的结束?通过一些特殊的格式字表示数据结束吗?还是同时输入两个零蛋if(a == 0 && b == 0)?
hust08p01 Reply 6 years 14 weeks ago
只有1组数据啊。 读入输出就可以了。 不过,OJ的文化或者说惯例是,没明确描述的multiply case都是以EOF(文件结束符)表示结尾的。 也就是if(scanf(\"%d%d\", &a, &b) == EOF) break;
findingnemo Reply 5 years 26 weeks ago
#include <stdio.h> int a, b; int main() { scanf(\"%d %d\", &a, &b); printf(\"%d\\n\", a + b); return 0; } this code gets rte why?
yuercl Reply 5 years 16 weeks ago
test
xiaqi0525 Reply 5 years 10 weeks ago
import java.io.*; import java.util.*; public class Main { public static void main(String args[]) throws Exception { Scanner cin=new Scanner(System.in); int a=cin.nextInt(); int b=cin.nextInt(); System.out.println(a+b); } } 为什么 会RE啊?? 那应该怎么写啊 java
qertyop Reply 5 years 6 weeks ago
同求,java的程序语法格式是怎样的,为什么会一直报错,求解!
10122130245 Reply 4 years 25 weeks ago
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner cin = new Scanner(System.in); int a, b; while (cin.hasNext()){ a = cin.nextInt(); b = cin.nextInt(); System.out.println(a + b); } } } 一直报错,无语了,FAQ里的示例程序都是错的
769846823 Reply 4 years 22 weeks ago
无语.....
yuercl Reply 4 years 20 weeks ago
一直报错,无语了,FAQ里的示例程序都是错的
terwer Reply 4 years 14 weeks ago
#include <stdio.h> int main() { int a,b; scanf(\"%d %d\",&a,&b); printf(\"%d\",a+b); } 可以ac
jobar Reply 4 years 16 hours ago
public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = scanner.nextInt(); System.out.println(a + b); } } java 提交一直报错,求解???
BingLau Reply 3 years 28 weeks ago
java提交需要将类名改为Main- -无语了……
k067706518 Reply 3 years 22 weeks ago
dsaf
HuaWang Reply 7 weeks 3 days ago
java代码提交不上去,是什么情况额???