結果

問題 No.80 四角形を描こう
ユーザー nemunemu
提出日時 2023-05-02 11:10:12
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 223 bytes
コンパイル時間 561 ms
コンパイル使用メモリ 67,072 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-21 02:28:55
合計ジャッジ時間 1,057 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 7 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>
using namespace std;

int main() {
    int D;
    cin >> D;

    if (!(D % 4)) {
        cout << D * D / 16 << endl;
    } else {
        cout << (D / 4) * ((D + 3) / 4) << endl;
    }
}
0