#4758: 簡易加法通過的標準?(第一次玩)


ericwei0309 (廷)


 

#include <iostream>
using namespace std;

int ohman(int x,int y)
{
    cout <<x << "+" << y;
    return (x+y);
}
int main()
{
    int a, b, c;
    cin >> a ;
    cin >> b ;
    c=ohman(a,b);
    cout <<"=";
    cout << c;
    cout << "\n\n";
    system("pause");
    return 0;
}
複製這樣RF欸

 

寫出來了,可以計算,但是機器裁判的標準是啥?

#4774: Re:簡易加法通過的標準?(第一次玩)


cbs951214 (哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈...)


 

#include
using namespace std;

int ohman(int x,int y)
{
    cout <    return (x+y);
}
int main()
{
    int a, b, c;
    cin >> a ;
    cin >> b ;
    c=ohman(a,b);
    cout <<"=";
    cout << c;
    cout << "\n\n";
    system("pause");
    return 0;
}
複製這樣RF欸

 

寫出來了,可以計算,但是機器裁判的標準是啥?


直接輸出答案就好了

像輸入     1 2

就輸出     3             不用輸出1+2=3