結果
| 問題 |
No.72 そろばん Med
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-29 20:16:46 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 360 bytes |
| コンパイル時間 | 579 ms |
| コンパイル使用メモリ | 67,452 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-02 07:28:19 |
| 合計ジャッジ時間 | 1,313 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 WA * 1 |
ソースコード
#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::fmod((std::floor(n/2.0)+1), MOD)*std::fmod((std::ceil(n/2.0)+1), MOD), MOD)-1 << "\n";
return 0;
}