結果
| 問題 |
No.72 そろばん Med
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-29 20:03:39 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 330 bytes |
| コンパイル時間 | 500 ms |
| コンパイル使用メモリ | 67,036 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-02 07:28:13 |
| 合計ジャッジ時間 | 1,411 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 WA * 23 |
ソースコード
#include <iostream>
#include <cmath>
#include <iomanip>
const int MOD = 1000007;
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(0);
long long int n;
std::cin >> n;
std::cout << std::fixed << std::setprecision(0) << std::fmod(((std::floor(n/2.0)+1)*(std::ceil(n/2.0)+1)-1), MOD) << "\n";
return 0;
}