1. 程式人生 > >ALGO-123_藍橋杯_算法訓練_A+B problem

ALGO-123_藍橋杯_算法訓練_A+B problem

problem main tdi return pro ins pre 算法訓練 訓練

問題描述
  Given two integers A and B, your task is to output their sum, A+B.
輸入格式
  The input contains of only one line, consisting of two integers A and B. (0 ≤ A,B ≤ 1 000)
輸出格式
  The output should contain only one number that is A+B.
樣例輸入
1 1
樣例輸出
2

AC代碼:

1 #include <stdio.h>
2 
3 int main(void
) 4 { 5 int a,b; 6 scanf("%d %d",&a,&b); 7 printf("%d",a+b); 8 return 0; 9 }

ALGO-123_藍橋杯_算法訓練_A+B problem