虽然是 100 分,大佬们还有补充的吗

P1001 A+B Problem

TimADE @ 2024-10-25 18:08:33

rt

#include<bits/stdc++.h>
#define short long long
#define int long long
#define float long double
#define double long double
#define char wchar_t
#define ios ios::sync_with_stdio(0),cin.tie(0),cout.tie(0)
using namespace std;
signed main(){
    ios;
    int a,b;
    cin>>a>>b;
    cout<<a+b;
    return 0;
}

by zsh_haha @ 2024-10-25 18:12:27

@TimADE

猜你想要:https://www.luogu.com.cn/problem/P1601。


by sjyyx13 @ 2024-10-25 19:18:39

#include <bits/stdc++.h>
long long a,b;int main(){std::cin>>a>>b;std::cout<<a+b;return 0;}

@TimADE


by TimADE @ 2024-10-25 19:19:12

@sjyyx13 6


by sjyyx13 @ 2024-10-25 19:19:14

这样短一点


by XQJ001 @ 2024-10-26 15:19:10

@sjyyx13 ```c


#include <iostream>

using namespace std;

int main(){
    int a,b;
   cin>>a>>b;
   cout<<a+b;
    return 0;
}

by XQJ001 @ 2024-10-26 15:19:57

这样更短


by Syuyanchan @ 2024-11-02 20:14:16

这是树状的题吧。居然可以这么写。神奇。


by crz_qwq @ 2024-11-26 10:17:48

不如用C语言

main(){int a,b;scanf("%d%d",&a,&b);printf("%d",a+b);}

|