結果

問題 No.1381 Simple Geometry 1
ユーザー sten_sansten_san
提出日時 2021-02-07 21:43:28
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 586 bytes
コンパイル時間 4,878 ms
コンパイル使用メモリ 193,028 KB
最終ジャッジ日時 2025-01-18 14:41:53
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

struct uns_t {} uns;
template <typename Element, typename Head, typename ...Args>
auto vec(Element init, Head arg, Args ...args) {
    if constexpr (sizeof...(Args) == 0) return std::vector(arg, init);
    else return std::vector(arg, vec(init, args...));
}
template <typename Element, typename Head, typename ...Args>
auto vec(uns_t, Head arg, Args ...args) {
    return vec(Element(), arg, args...);
}

int main() {
    int x, y, z, w; cin >> x >> y >> z >> w;
    cout << fixed << setprecision(8) << (x - (x + y * z) / 2.0) << endl;
}

0