結果
| 問題 |
No.71 そろばん
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-06-27 22:08:25 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 143 bytes |
| コンパイル時間 | 159 ms |
| コンパイル使用メモリ | 30,208 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-11 23:26:47 |
| 合計ジャッジ時間 | 1,019 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 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));
return 0;
}