結果

問題 No.2749 随伴関手入門
ユーザー shobonvipshobonvip
提出日時 2024-05-10 21:26:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 159 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 82,076 KB
実行使用メモリ 53,564 KB
最終ジャッジ日時 2024-05-10 21:26:08
合計ジャッジ時間 2,010 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,304 KB
testcase_01 AC 33 ms
53,560 KB
testcase_02 AC 35 ms
52,444 KB
testcase_03 AC 42 ms
52,300 KB
testcase_04 AC 34 ms
52,688 KB
testcase_05 AC 33 ms
52,136 KB
testcase_06 AC 33 ms
51,756 KB
testcase_07 AC 34 ms
53,564 KB
testcase_08 AC 33 ms
51,984 KB
testcase_09 AC 38 ms
51,824 KB
testcase_10 AC 36 ms
52,208 KB
testcase_11 AC 34 ms
52,000 KB
testcase_12 AC 33 ms
52,060 KB
testcase_13 AC 33 ms
51,944 KB
testcase_14 AC 32 ms
52,868 KB
testcase_15 AC 34 ms
52,468 KB
testcase_16 AC 34 ms
53,456 KB
testcase_17 AC 34 ms
52,928 KB
testcase_18 AC 33 ms
52,268 KB
testcase_19 AC 34 ms
53,296 KB
testcase_20 AC 34 ms
52,756 KB
testcase_21 AC 32 ms
52,708 KB
testcase_22 AC 34 ms
51,824 KB
testcase_23 AC 33 ms
53,280 KB
testcase_24 AC 32 ms
53,212 KB
testcase_25 AC 33 ms
53,532 KB
testcase_26 AC 33 ms
52,740 KB
testcase_27 AC 32 ms
53,124 KB
testcase_28 AC 34 ms
52,480 KB
testcase_29 AC 33 ms
52,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
fib = [0, 1]
if n == 1:
	print(1)
	exit()
t = 2
while True:
	fib.append((fib[-1] + fib[-2]) % n)
	if fib[-1] == 0:
		print(t)
		exit()
	t += 1
0