結果

問題 No.1822 Keima of Shogi
ユーザー Digwee_kkknDigwee_kkkn
提出日時 2022-01-28 21:23:50
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,046 bytes
コンパイル時間 1,361 ms
コンパイル使用メモリ 164,340 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-28 19:02:26
合計ジャッジ時間 1,982 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 WA -
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>  
#define _USE_MATH_DEFINES  
using namespace std; typedef pair<int,int> P; typedef double db; typedef long long ll;  typedef float fl;  typedef bool bl; typedef string st;   typedef int itn; 
const int INF=100000000; /*π*/double PI=3.141592653589;ll MOD=1000000007; int dx[4]={1,0,-1,0} , dy[4]={0,1,0,-1}; int DX[8]={0,-1,-1,-1,0,1,1,1} , DY[8]={1,1,0,-1,-1,-1,0,1}; 
string fi="01234567890123456789"; string al="abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"; string AL="ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ";
int factorial(int i){return i ? factorial(i-1)*i:1;};  
#define YesNo(flag) if(flag){cout<<"Yes"<<endl;}else{cout<<"No"<<endl;} 
#define rep(i,n) for(int i=0;i<(n);++i)  
#define cl(s) s-='a'-'A'; //s[i]ではないと認識しない error;
#define sl(s) s+='a'-'A'; 

int main(){
  int n; cin>>n;
  cout << ((n+1)/2)*((n+1)/2+1)/2 << endl;
}

// 文字列sの数値変換の例 int a=atoi(s.c_str());
// substrは長さnの文字列s、s.substr(配列の要素(0も含む),文字数);
0