結果
問題 | No.741 AscNumber(Easy) |
ユーザー |
![]() |
提出日時 | 2020-12-02 01:17:43 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 293 bytes |
コンパイル時間 | 373 ms |
コンパイル使用メモリ | 20,736 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-13 03:37:07 |
合計ジャッジ時間 | 1,720 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 55 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:8:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d", &N); | ^~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>#define M 1000000007int main(){int N;scanf("%d", &N);long long result = 1;for(int i = 1; i < 10; i++) {result *= N + i;result %= M;}result *= 831947206;result %= M;printf("%d\n", (int)result);return 0;}