結果

問題 No.111 あばばばば
ユーザー KKT89
提出日時 2020-06-10 08:43:53
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 267 bytes
コンパイル時間 874 ms
コンパイル使用メモリ 93,840 KB
最終ジャッジ日時 2025-01-11 00:44:08
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <math.h>
using namespace std;
typedef long long int ll;

int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	ll l; cin >> l;
	printf("%lld\n",(l-1)*(l-1)/4);
}
0