计算a+b
題目1000:計算a+b
時間限制:1 秒
內存限制:32 兆
特殊判題:否
提交:32767
解決:14461
題目描述:求整數a,b的和。
測試案例有多行,每行為a,b的值。
輸出多行,對應a+b的結果。
C語言版
c++語言版
/** cal.cpp** Created on: 2015年4月11日* Author: judyge*/ #include <stdio.h> #include <iostream> using namespace std;int main() {int a;int b;while(cin>>a>>b){int c=a+b;cout<<c;}}總結