結果

問題 No.492 IOI数列
ユーザー square1001square1001
提出日時 2017-03-10 22:13:10
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 181 bytes
コンパイル時間 218 ms
コンパイル使用メモリ 11,312 KB
実行使用メモリ 15,384 KB
最終ジャッジ日時 2023-09-06 13:21:52
合計ジャッジ時間 3,342 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,048 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 AC 80 ms
15,080 KB
testcase_11 AC 80 ms
15,252 KB
testcase_12 AC 80 ms
15,064 KB
testcase_13 AC 80 ms
15,004 KB
testcase_14 AC 81 ms
15,104 KB
testcase_15 AC 79 ms
15,256 KB
testcase_16 AC 81 ms
15,008 KB
testcase_17 AC 81 ms
15,132 KB
testcase_18 AC 80 ms
15,048 KB
testcase_19 AC 81 ms
15,052 KB
testcase_20 AC 113 ms
15,356 KB
testcase_21 AC 397 ms
15,132 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = gets.to_i
raise "assert" unless n <= 100000000
ret1 = 0
ret2 = 0
n.times {
	ret1 = (ret1 * 100 + 1) % 1000000007
	ret2 = (ret2 * 100 + 1) % 101010101010101010101
}
p ret1
p ret2
0