結果
| 問題 |
No.80 四角形を描こう
|
| コンテスト | |
| ユーザー |
めうめう🎒
|
| 提出日時 | 2016-04-29 22:02:10 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 487 bytes |
| コンパイル時間 | 781 ms |
| コンパイル使用メモリ | 72,536 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-08 05:05:58 |
| 合計ジャッジ時間 | 1,442 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 8 |
ソースコード
#include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define INF (1 << 30)
#define INFLL (1LL << 60)
int main() {
int n,a;
cin >> n;
a = n / 2;
if(n < 4) cout << 0 << endl;
else if(a % 2 == 1){
cout << (a / 2) * (a / 2 + 1) << endl;
}else{
cout << (a / 2) * (a / 2) << endl;
}
return 0;
}
めうめう🎒