結果
問題 |
No.72 そろばん Med
|
ユーザー |
![]() |
提出日時 | 2016-10-22 00:12:00 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 321 bytes |
コンパイル時間 | 568 ms |
コンパイル使用メモリ | 60,424 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-23 16:51:30 |
合計ジャッジ時間 | 1,440 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 24 |
ソースコード
#include <iostream> #include <math.h> #include <string> #include <algorithm> using namespace std; int main(){ long long n; long long a,b; long long ans; cin >> n; a = n / 2; a = a % 1000007; b = (n - a + 2) % 1000007; ans = (a*b)%1000007-1; if (ans == -1){ ans = 1000006; } cout << ans << endl; return 0; }