結果

問題 No.793 うし数列 2
ユーザー simansiman
提出日時 2019-02-22 21:38:34
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 72 bytes
コンパイル時間 380 ms
コンパイル使用メモリ 11,176 KB
実行使用メモリ 21,412 KB
最終ジャッジ日時 2023-08-16 16:38:38
合計ジャッジ時間 3,430 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
15,116 KB
testcase_01 AC 67 ms
15,036 KB
testcase_02 AC 67 ms
15,252 KB
testcase_03 AC 69 ms
15,104 KB
testcase_04 AC 68 ms
15,076 KB
testcase_05 AC 79 ms
16,968 KB
testcase_06 AC 114 ms
21,012 KB
testcase_07 AC 87 ms
18,332 KB
testcase_08 AC 119 ms
21,412 KB
testcase_09 AC 97 ms
19,748 KB
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.to_i

n = '1' + '3' * N

MOD = 10 ** 9 + 7

puts(n.to_i % MOD)
0