結果

問題 No.823 Many Shifts Easy
ユーザー Pulmn
提出日時 2018-08-30 17:29:59
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 137 bytes
コンパイル時間 400 ms
コンパイル使用メモリ 55,768 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-25 01:22:56
合計ジャッジ時間 900 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int N;

int main(){
	cin>>N;
	int t=N*(N-1)/2;
	for(int i=1;i<=N;i++) t*=i;
	cout<<t/2<<endl;
}
0