結果

問題 No.1009 面積の求め方
ユーザー SSRS
提出日時 2020-08-31 06:46:47
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 188 bytes
コンパイル時間 878 ms
コンパイル使用メモリ 88,032 KB
最終ジャッジ日時 2025-01-14 02:16:22
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main(){
	cout << fixed << setprecision(5);
	int a, b;
	cin >> a >> b;
	cout << pow(b - a, 3) / 6 << endl;
}
0