結果
| 問題 | No.71 そろばん |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-06-27 22:08:11 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 151 bytes |
| 記録 | |
| コンパイル時間 | 159 ms |
| コンパイル使用メモリ | 30,464 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-11 22:27:07 |
| 合計ジャッジ時間 | 1,108 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | WA * 20 |
ソースコード
#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;
}