サイトのタイトルを書きます。

サブタイトルを書きます。

EX3 - 計算問題

■回答

C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  cout << 100/2*(100+1) << endl;
}

■注意点
C++では、1/2=0 2/2=1 3/2=1
小数点以下は出力されない。

atcoder.jp