- A + B Problem
最短代码挑战
- @ 2024-7-23 20:14:46
C++:
#import<iostream>
main(){int a,b;std::cin>>a>>b;std::cout<<a+b;}
C:
main(){int a,b;scanf("%d%d",&a,&b);printf("%d",a+b);}
Python3:
n=input().split();print(int(n[0])+int(n[1]))
欢欢迎补充!
17 条评论
-
hydrox1de LV 9 @ 2025-1-24 10:35:38Kotlin/JVM(Koitlin-Native 不行):
import java.util.* fun main() {val r=Scanner(System.`in`);print(r.nextInt()+r.nextInt())} -
@ 2024-10-13 16:36:37《
#import》 -
@ 2024-10-2 9:57:26print(sum(map(int, input().split()))) -
@ 2024-8-21 21:19:45c++中的
import应改为include -
@ 2024-8-19 12:47:53C++:
main(){int a,b;cin >> a >> b;cout << a+b;} -
@ 2024-8-9 17:10:27
PHP
a -
@ 2024-8-1 11:17:52print(eval(input())+eval(input())) -
@ 2024-7-30 20:28:44
``` ` -
@ 2024-7-29 12:38:05Python3
print(sum(map(int, input().split()))) -
@ 2024-7-27 17:04:086
-
@ 2024-7-27 16:03:41Bash: echo
-
@ 2024-7-27 16:00:31C++:
main(){} -
@ 2024-7-25 17:09:54《你C++用
import》🤔 3 -
@ 2024-7-25 9:21:39
更短的
int main(){} -
@ 2024-7-24 13:43:05python3(?)
print(int(input())+int(input())) -
@ 2024-7-24 11:48:18python3(?)
n=input().split(); print(int(n[1])+int(n[0]))e
-
@ 2024-7-23 22:02:35You rock!!
- 1
信息
- ID
- 56
- 时间
- ms
- 内存
- MiB
- 难度
- 1
- 标签
- 递交数
- 12363
- 已通过
- 5577
- 上传者