結果
| 問題 | No.72 そろばん Med |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-06-27 22:07:13 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 151 bytes |
| 記録 | |
| コンパイル時間 | 161 ms |
| コンパイル使用メモリ | 30,336 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-21 11:54:45 |
| 合計ジャッジ時間 | 1,052 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
#include <stdio.h>
int main(){
long long n,x,y;
scanf("%lld",&n);
x=n/2;
y=n-x;
printf("%lld\n",((__int128_t)(x+1)*(y+1)-1)%1000007);
return 0;
}