Đăng nhập để hỏi chi tiết


Hãy luôn nhớ cảm ơn và vote 5*
nếu câu trả lời hữu ích nhé!
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
if(n==1) cout<<"Hello World";
else
{
int a,b;
cin>>a>>b;
cout<<a+b;
}
}
Hãy giúp mọi người biết câu trả lời này thế nào?

#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
if (n==1) cout << "Hello World";
else if (n==2) {
int a,b;
cin >> a >> b;
cout << a+b;
}
}
Hãy giúp mọi người biết câu trả lời này thế nào?

Bảng tin
4332
2636
1960
n = int(input()) print('Hello World' if n==1 else sum(map(int,input().split())))
4332
2636
1960
check hộ t sao code này sai cái
2707
41698
2042
:vv