結果
問題 |
No.1009 面積の求め方
|
ユーザー |
![]() |
提出日時 | 2020-03-29 12:28:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 400 bytes |
コンパイル時間 | 1,622 ms |
コンパイル使用メモリ | 160,408 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-01-02 13:19:52 |
合計ジャッジ時間 | 2,534 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(long long int i = 0; i < n; i++) #define _rep(i,m,n) for(long long int i = m; i < n; i++) #define print(n) std::cout << n << std::endl #define _print(n) std::cout << n using namespace std; typedef long long ll; const int N = 1000000; const ll mod = 1000000007; int main() { int a,b; cin >> a >> b; double ans = pow(b-a,3) / 6; print(ans); }