結果
問題 | No.1263 ご注文は数学ですか? |
ユーザー | kozy |
提出日時 | 2020-10-08 17:45:14 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 163 bytes |
コンパイル時間 | 123 ms |
コンパイル使用メモリ | 10,648 KB |
実行使用メモリ | 29,664 KB |
最終ジャッジ日時 | 2023-09-27 11:56:01 |
合計ジャッジ時間 | 1,981 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 134 ms
29,592 KB |
testcase_01 | WA | - |
testcase_02 | AC | 135 ms
29,392 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 133 ms
29,488 KB |
ソースコード
import numpy as np a=int(input()) mod=1000000007 L=list(range(1,a)) p2 = np.poly1d(L, r = True) L=p2.coef ans=1 for i in L: ans*=i ans%=mod print(int(ans))