結果
問題 | No.823 Many Shifts Easy |
ユーザー |
![]() |
提出日時 | 2018-08-30 21:45:34 |
言語 | C++11 (gcc 13.3.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 183 bytes |
コンパイル時間 | 357 ms |
コンパイル使用メモリ | 54,132 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-25 01:22:57 |
合計ジャッジ時間 | 831 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 8 |
ソースコード
#include <iostream> using namespace std; typedef long long ll; const ll mod=1e9+7; int N; int main(){ cin>>N; ll t=N*(N-1)/2; for(int i=3;i<=N;i++) (t*=i)%=mod; cout<<t<<endl; }