結果
問題 |
No.72 そろばん Med
|
ユーザー |
![]() |
提出日時 | 2015-07-27 01:06:31 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 149 bytes |
コンパイル時間 | 212 ms |
コンパイル使用メモリ | 20,096 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-16 00:23:26 |
合計ジャッジ時間 | 989 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 WA * 9 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%lld",&N); | ^~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h> int main(void){ long long int N; scanf("%lld",&N); N=N%1000007; printf("%lld\n",((N/2+1)*(N-N/2+1)-1)%1000007); return 0; }