結果
問題 | No.1277 級数入り級数 |
ユーザー |
![]() |
提出日時 | 2020-10-30 23:56:24 |
言語 | Ruby (3.4.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 158 bytes |
コンパイル時間 | 83 ms |
コンパイル使用メモリ | 7,680 KB |
実行使用メモリ | 12,544 KB |
最終ジャッジ日時 | 2024-07-22 03:39:11 |
合計ジャッジ時間 | 5,797 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 1 |
other | RE * 50 |
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.to_i for i in 1..n fact *= i end fans = (-1 * fact ) % ((10 ** 9) + 7) cans = n & ((10 ** 9) + 7) print("1\n") print(fans, "\n") print(cans, "\n")