結果
問題 | No.111 あばばばば |
ユーザー |
![]() |
提出日時 | 2016-03-03 23:30:50 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 210 bytes |
コンパイル時間 | 365 ms |
コンパイル使用メモリ | 54,944 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-24 13:59:37 |
合計ジャッジ時間 | 836 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include<iostream> using namespace std; int main(){ long long L; long long ans=0; long long tmp; long long n; cin>>L; ans=(L-1)/2; tmp=(L-3)/2; n=tmp; tmp=tmp+1; ans+=tmp*n; cout<<ans<<endl; }