結果

問題 No.1671 Permutation Tour
ユーザー t98slider
提出日時 2024-05-01 23:23:26
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 163 bytes
コンパイル時間 4,443 ms
コンパイル使用メモリ 250,328 KB
最終ジャッジ日時 2025-02-21 10:06:02
ジャッジサーバーID
(参考情報)
judge4 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#include<atcoder/all>
using namespace std;

int main(){
long long n;cin>>n;
cout << (atcoder::modint1000000007(n * (n+1))/3).val()<<endl;
}
0