結果
問題 |
No.111 あばばばば
|
ユーザー |
![]() |
提出日時 | 2016-01-11 01:14:40 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 523 bytes |
コンパイル時間 | 1,259 ms |
コンパイル使用メモリ | 157,792 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-19 18:41:15 |
合計ジャッジ時間 | 1,542 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:20:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 20 | scanf("%lld", &L); | ~~~~~^~~~~~~~~~~~
ソースコード
#include<bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define fr first #define sc second #define Rep(i,n) for(int i=0;i<(n);i++) #define All(v) v.begin(),v.end() #define Uniq(v) v.erase(unique(all(v)),v.end()) typedef pair<int, int> Pii; typedef pair<int, Pii> Pip; typedef pair<string, int> Psi; typedef vector<int> Vi; const int INF = (1<<30); const int dx[]={1,0,-1,0}, dy[]={0,-1,0,1}; int main() { ll L; scanf("%lld", &L); printf("%lld\n", (L-1)/2 * (L-1) / 2); return 0; }