結果
問題 |
No.541 3 x N グリッド上のサイクルの個数
|
ユーザー |
|
提出日時 | 2017-08-25 22:17:48 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 175 bytes |
コンパイル時間 | 458 ms |
コンパイル使用メモリ | 58,452 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-15 15:45:21 |
合計ジャッジ時間 | 1,809 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 62 |
ソースコード
#include <iostream> #include <cmath> using namespace std; #define ll long long #define mod 1000000007 int main(){ ll N; cin >> N; cout << (N*(N-1)/2)%mod << endl; return 0; }