結果
問題 |
No.111 あばばばば
|
ユーザー |
![]() |
提出日時 | 2018-09-12 14:29:50 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 185 ms / 5,000 ms |
コード長 | 328 bytes |
コンパイル時間 | 1,447 ms |
コンパイル使用メモリ | 164,940 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-26 21:57:15 |
合計ジャッジ時間 | 2,289 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include <bits/stdc++.h> typedef long long ll; #define INF 1000000000 #define MOD 1000000007 using namespace std; int main(void){ ll l; cin>>l; ll num_aba=(l-1)/2,num_bab=num_aba-1; ll ans=0; while(num_aba>0){ ans+=num_aba+num_bab; num_aba--; num_bab--; } cout<<ans<<endl; }