結果

問題 No.1409 Simple Math in yukicoder
ユーザー convexineqconvexineq
提出日時 2021-02-27 06:49:54
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 389 bytes
コンパイル時間 326 ms
コンパイル使用メモリ 82,528 KB
実行使用メモリ 84,836 KB
最終ジャッジ日時 2024-04-10 15:12:25
合計ジャッジ時間 28,142 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
59,612 KB
testcase_01 AC 34 ms
53,492 KB
testcase_02 AC 32 ms
52,936 KB
testcase_03 AC 30 ms
53,160 KB
testcase_04 AC 31 ms
52,748 KB
testcase_05 RE -
testcase_06 AC 32 ms
52,544 KB
testcase_07 AC 213 ms
68,796 KB
testcase_08 AC 631 ms
77,080 KB
testcase_09 AC 197 ms
68,160 KB
testcase_10 AC 497 ms
77,000 KB
testcase_11 AC 643 ms
76,912 KB
testcase_12 AC 455 ms
76,540 KB
testcase_13 AC 206 ms
69,048 KB
testcase_14 AC 184 ms
69,308 KB
testcase_15 AC 274 ms
74,816 KB
testcase_16 AC 279 ms
74,540 KB
testcase_17 AC 830 ms
77,532 KB
testcase_18 AC 414 ms
76,448 KB
testcase_19 AC 460 ms
76,640 KB
testcase_20 AC 383 ms
76,476 KB
testcase_21 AC 339 ms
77,264 KB
testcase_22 AC 564 ms
77,156 KB
testcase_23 AC 147 ms
67,096 KB
testcase_24 AC 123 ms
66,696 KB
testcase_25 AC 519 ms
76,972 KB
testcase_26 AC 559 ms
76,604 KB
testcase_27 AC 881 ms
77,200 KB
testcase_28 AC 895 ms
76,596 KB
testcase_29 AC 869 ms
76,748 KB
testcase_30 AC 910 ms
76,804 KB
testcase_31 AC 907 ms
76,972 KB
testcase_32 AC 836 ms
76,628 KB
testcase_33 AC 841 ms
77,072 KB
testcase_34 AC 846 ms
76,416 KB
testcase_35 AC 910 ms
76,268 KB
testcase_36 AC 901 ms
76,788 KB
testcase_37 TLE -
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 #

T = int(input())
for _ in range(T):
    v,x = map(int,input().split())
    p = v*x+1
    for r in range(2,p):
        if pow(r,v,p) == 1:
            continue
        else:
            rr = r
            for i in range(p-3):
                rr = rr*r%p
                if rr == 1: break
            else:
                break
    a = [pow(r,i*v,p) for i in range(x)]
    print(*sorted(a))
0