結果

問題 No.1409 Simple Math in yukicoder
ユーザー tamatotamato
提出日時 2021-02-26 22:27:11
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 364 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 82,820 KB
実行使用メモリ 83,176 KB
最終ジャッジ日時 2024-04-10 13:11:32
合計ジャッジ時間 35,248 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
61,084 KB
testcase_01 AC 31 ms
53,120 KB
testcase_02 AC 34 ms
52,672 KB
testcase_03 AC 35 ms
52,536 KB
testcase_04 AC 32 ms
52,824 KB
testcase_05 AC 31 ms
52,836 KB
testcase_06 AC 30 ms
53,752 KB
testcase_07 AC 598 ms
66,472 KB
testcase_08 TLE -
testcase_09 AC 549 ms
65,364 KB
testcase_10 AC 1,575 ms
74,372 KB
testcase_11 AC 1,932 ms
74,736 KB
testcase_12 AC 1,498 ms
73,072 KB
testcase_13 AC 607 ms
65,848 KB
testcase_14 AC 476 ms
65,352 KB
testcase_15 AC 710 ms
69,228 KB
testcase_16 AC 752 ms
68,816 KB
testcase_17 TLE -
testcase_18 AC 1,298 ms
72,344 KB
testcase_19 AC 1,391 ms
74,184 KB
testcase_20 AC 1,134 ms
70,548 KB
testcase_21 AC 898 ms
71,088 KB
testcase_22 AC 1,703 ms
73,620 KB
testcase_23 AC 377 ms
65,068 KB
testcase_24 AC 304 ms
63,784 KB
testcase_25 AC 1,606 ms
72,912 KB
testcase_26 AC 1,731 ms
73,912 KB
testcase_27 TLE -
testcase_28 TLE -
testcase_29 TLE -
testcase_30 TLE -
testcase_31 TLE -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
testcase_41 -- -
testcase_42 -- -
testcase_43 -- -
testcase_44 -- -
testcase_45 -- -
testcase_46 -- -
testcase_47 -- -
testcase_48 -- -
testcase_49 -- -
testcase_50 -- -
testcase_51 -- -
testcase_52 -- -
testcase_53 -- -
testcase_54 -- -
testcase_55 -- -
testcase_56 -- -
testcase_57 -- -
testcase_58 -- -
testcase_59 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.buffer.readline

    for _ in range(int(input())):
        v, x = map(int, input().split())
        ans = []
        p = x*v+1
        for i in range(1, p+1):
            if pow(i, x, p) == 1:
                ans.append(i)
        print(*ans)


if __name__ == '__main__':
    main()
0