結果
問題 |
No.72 そろばん Med
|
ユーザー |
![]() |
提出日時 | 2017-08-10 19:13:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 159 bytes |
コンパイル時間 | 1,455 ms |
コンパイル使用メモリ | 166,248 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-21 12:07:26 |
合計ジャッジ時間 | 2,369 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 24 |
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 3 | main(){ | ^~~~
ソースコード
#include<bits/stdc++.h> int MOD = 1000007; main(){ long long N; scanf("%lld",&N); printf("%lld\n",((N/2LL+1)%MOD*((((N+1)/2+1))%MOD)+MOD-1)%MOD); }