#43657: C++解題思路


11331108@stu.tshs.tp.edu.tw (一信18吳柏穎)

學校 : 不指定學校
編號 : 278852
來源 : [125.228.248.38]
最後登入時間 :
2025-10-03 13:22:38

用int設兩個數

cin兩個數

直接cout兩變數相加即可

#include <iostream>
using namespace std;
int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    
    int a,b;
    cin>>a>>b;
    cout<<a+b;

    return 0;
}