pjh0625 @ 2024-11-10 21:38:05
using System;
class APlusB
{
static void Main()
{
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
int sum = a + b;
Console.WriteLine(sum);
}
}
by GoodLuckCat @ 2024-11-10 21:41:35
@pjh0625 private
by GoodLuckCat @ 2024-11-10 21:41:48
using System;
class APlusB
{
private static void Main()
{
string[] input = Console.ReadLine().Split(' ');
int a = int.Parse(input[0]);
int b = int.Parse(input[1]);
int sum = a + b;
Console.WriteLine(sum);
}
}
by pjh0625 @ 2024-11-10 21:46:43
@GoodLuckCat
谢谢,但我发现原本的代码好像也能AC,提交时必须设为C# Mono
by wzy_ok @ 2024-11-12 06:55:09
你们这啥鸟语呀?没看懂。 其实很简单,只用:
#include<cstdio>
using namespace std;
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a+b);
return 0;
}
就行了
by GoodLuckCat @ 2024-11-12 13:29:44
@wzy_ok C# Mono,语言不一样导致的
虽然我根本不会 C# Mono
by wzy_ok @ 2024-11-13 06:47:48
哦
by timefeng @ 2024-11-20 21:01:43
#include<iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
cout<<a+b;
return 0;
}
by di_tie_bo_er_te @ 2024-12-19 17:02:28
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,d,e,f,g;
scanf("%d%d",&a,&b);
if(1+1==2)
{
if(2+2==4)
{
if(3+3==6)
{
c=a+b;d=a+b;d=c;e=c;e=d;f=a+b;f=c;f=e;f=f+1-1+1-1;g=f;g=g+1-1+1-1+123456789-123456789;
}
}
}printf("%d\n",g);
return 0;
}
@pjh0625 求关