December 4, 2018
Total 2 number
Threads: For 2 integers a, b. Total 2 number.
Input: A line containing 2 integers separated by spaces.
Output: A single integer is the sum of 2 Some have.
For example:
input: 2 3 output: 5
You are not logged in? Log in to Submit Now!
47 Comments
Add a Comment
You must be logged in to post a comment.
Function is also quite however not much meaning because it is only possible to check for true and false. The most important thing is to figure out where is wrong (algorithm) the application cannot do it yet, however, the author's effort is also very remarkable, dot for 4 *
Yes. This problem is not really done, because it is very complicated. Do not know Mr. The Anh has any way or keywords to talk about this problem?
In my opinion, if possible, you allow uploading everyone's code and let people vote which code is fastest. Looks like the codefight you mean. 😀
Oh. Pretty good idea. I will consider.
Just point out the wrong place, then there is no need to think ? I find showing the difference between the system output and my own output is already very detailed. ( Other pages are not indicated ). That's enough to know what I need to fix
#include
int main()
{
int a =2, b = 3;
printf(“%d + %d = %d”, a, b, a + b);
return 0;
}
Like this, what is the wrong report @@
You read the article carefully, especially input and output offline.
Read the instructions here: https://chamcode.net/huong-dan-nop-bai/
And observe the wrong result, consider it false compared to the results of the system.
I learned many things from the web ye thank the web and the creator
Thank you. Share with your friends.
chuoi = input(“Input: \n”)
mang1 = []
bring = chuoi.split(‘ ‘)
for i in range(len(Carry)):
mang1.append(int (Carry[i]))
print(chuoi)
tong=0
for i in range(len(mang1)):
tong+=mang1[i]
print(tong)
Do not know where is wrong ??????????
Read the sample code to check it out. In that instruction menu you.
I comment like this, Maybe my code submitted k is wrong, Only the way your code is not similar to your code, so I submitted it wrong, Even though I run cmd then input 2 3 still out 5, nothing redundant missing
Thank you, I have seen your code, Probably this code: https://ideone.com/7TRL8f. However, your code is wrong no matter where I run it. Your variable c does not exist, you only have variable C (ordinary flowers). So you try it again.
The request is very simple, No need to know how to code, just get the same input and output. No matter whether the song is correct or not, in put + Out put that does not match is also counted as doing wrong compared to the required topic❤❤❤
Ah sorry because I code in mobile
import java.util. *;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
System.out.printIn(a + b);
}
}
Main.java:7: error: cannot find symbol System.out.printIn(a + b); ^ symbol: method printIn(int) location: variable out of type PrintStream 1 error
??????
Your error code should be like that.
Can't see the test case? :))))
Do it wrong to see it ok 😛
#include
int Tong(int a,int b)
{
int i;
Sum = ( a + b);
return Sum;
}
int main()
{
int a,b;
int T;
printf(“”);
scanf(“%d”,&a);
printf(“%d”,a);
printf(” “);
scanf(“%d”,&b);
printf(“%d”,b);
T=Tong(a,b);
printf(“\n%d”,T);
}
I'm still wrong if I do this
don't know where is wrong
bro help me fix the error
See the difference between Test output and your output.
1. Wrong Answer
Test Input:
4 5
Test Output:
9
Your Output:
4 5
9
2. Wrong Answer
Test Input:
100 100
Test Output:
200
Your Output:
100 100
200
3. Wrong Answer
Test Input:
-200 900
Test Output:
700
Your Output:
-200 900
700
4. Wrong Answer
Test Input:
-300 800
Test Output:
500
Your Output:
-300 800
500
5. Wrong Answer
Test Input:
-400 700
Test Output:
300
Your Output:
-400 700
300
???
don't know where is wrong?
See the difference between Test output and your output.
Can you see where the wrong code is???
You compare Test output and Your output offline.
import java.util.Scanner;
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.print(a + b);
}
}
——————————-
Have the admin review the time or memory configuration of the JAVA compiler when running the test cases,
Because this post is so simple, my code above cannot be wrong,
however, when running, in 5 Testcase has approx 1-2 The testcase is PROCESSING (I think the compiler).
Thanks admin very much!
Thank you. Maybe the server is overloaded, so it could not be processed at that time. Please try again a few times. Your code must not be wrong.
hi ad,
I think it's not because the server is overloaded, because mềnh has resubmitted this post at 1-2am, When viewing the code, there was no one who submitted it outside.
It may be that the ad configuring the javac compiler has limited memory or time (eg do not exceed 1 seconds), Beyond that limit the message PROCESSING even though the code is not wrong at all, So, admin increase this limit about 1 minutes or something I think PROCESSING will not be notified anymore.
Personal opinion, Admin, please refer!
Ok, Let me see it again. Are you using Java?.
hi ad,
After upgrading to JDK9, this post is ok admin,
Other songs I don't know yet because I don't have time to do next
anyways thanks ad very much!
#include
using namespace std;
int main(){
long a,b;
China>>a>>b;
cost<<a+b;
return 0;
}
Hello, see if you help me 1 testcase (3 or 4) Something fails, I don't know what's wrong, can you check for me?
Thanks anh!
You see how different Test output with Your output is.
It turns out that this printf line redundancy(“Nhap hai so nguyen a , b : “); Whoa Really
#include
int main()
{
int a,b,i;
scanf (“%d” ,&a) ;
scanf (“%d” ,&b) ;
i=a+b ;
printf (“%d” ,i) ;
}
Test on top of the test using incorrect system
You edit to import 2 number above 1 stream of view
#include
int main ()
{
int a=3, b=4, tong ;
printf(“Input %d %dn”, a, b);
printf(“\nOutput :%d”, tong= a + b);
return 0;
}
where is wrong
Look at the sample code in the Homework Instructions menu.
Help me with everyone. Sum calculation 2 I do like this : so1 = int(input())
so2 = int(input())
print(so1 + so2)
(in python) but it gives an error
You try this
x, y = map(int, input().split())
print (x + Y)
from youtuber Tung Vietnam very good web, rewarding and effective
love the producer
Thank you. Please share with your friends.
import java.util. *;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
int b = scan.nextInt();
System.out.println(a + b);
}
}
//Why can't I run like that? >?
Currently the number of submissions per day is limited 100 test. So maybe you run out of turns.
copy the totals 2 wrong number do not understand where wrong ad
Please compare your output and test output.
The code of the page is sad
Every day only 100 submit for everyone. The amount of submissions is limited