結果
問題 | No.1381 Simple Geometry 1 |
ユーザー |
![]() |
提出日時 | 2021-02-07 22:01:17 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 520 bytes |
コンパイル時間 | 2,369 ms |
コンパイル使用メモリ | 190,804 KB |
最終ジャッジ日時 | 2025-01-18 14:48:13 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 29 |
ソースコード
#include<bits/stdc++.h>#define rep(i, n) for (int i = 0; i < (int) n; i++)using ll = long long;using namespace std;const long long INF = 1ll << 60;template<class T>bool chmin(T &a, T b) {if (a > b) {a = b;return true;}return false;}template<class T>bool chmax(T &a, T b) {if (a < b) {a = b;return true;}return false;}int main() {ll x, y, z, w;cin >> x >> y >> z >> w;double s = (x - y * z);cout << s / 2.0 << endl;}