importjava.util.*;publicclassMain{publicstaticvoidmain(String[]args){Scanner sc =newScanner(System.in);// get a integer
int a = sc.nextInt();// get two integers separated with half-width break
int b = sc.nextInt();int c = sc.nextInt();// get a string
String s = sc.next();// output
System.out.println((a+b+c)+""+ s);}}
#include<iostream>usingnamespace std;intmain(){// get a integer
int a;
cin >> a;// get two integers separated with half-width break
int b,c;
cin >> b >> c;// get a string
string s;
cin >> s;// output
cout <<(a+b+c)<<""<< s << endl;return0;}
共 12 条回复
我好像懂了
可以看这个
OK
OK sir
所以搞了半天我也没弄懂怎么用正确姿势发代码【狗头】【狗头】【鲜花】