結果

問題 No.1409 Simple Math in yukicoder
ユーザー PSL24251284PSL24251284
提出日時 2021-07-01 21:46:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 264 ms / 2,000 ms
コード長 259 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 87,172 KB
実行使用メモリ 78,600 KB
最終ジャッジ日時 2023-09-10 19:52:54
合計ジャッジ時間 36,863 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,068 KB
testcase_01 AC 70 ms
71,384 KB
testcase_02 AC 74 ms
71,276 KB
testcase_03 AC 72 ms
71,408 KB
testcase_04 AC 70 ms
71,056 KB
testcase_05 AC 73 ms
71,380 KB
testcase_06 AC 70 ms
71,148 KB
testcase_07 AC 153 ms
76,668 KB
testcase_08 AC 149 ms
77,556 KB
testcase_09 AC 97 ms
76,808 KB
testcase_10 AC 132 ms
77,252 KB
testcase_11 AC 142 ms
77,476 KB
testcase_12 AC 131 ms
77,216 KB
testcase_13 AC 100 ms
76,404 KB
testcase_14 AC 94 ms
76,624 KB
testcase_15 AC 111 ms
77,112 KB
testcase_16 AC 113 ms
76,944 KB
testcase_17 AC 156 ms
77,412 KB
testcase_18 AC 124 ms
77,544 KB
testcase_19 AC 131 ms
77,412 KB
testcase_20 AC 124 ms
77,456 KB
testcase_21 AC 120 ms
77,476 KB
testcase_22 AC 134 ms
77,412 KB
testcase_23 AC 96 ms
76,752 KB
testcase_24 AC 90 ms
76,560 KB
testcase_25 AC 139 ms
77,464 KB
testcase_26 AC 136 ms
77,380 KB
testcase_27 AC 162 ms
77,228 KB
testcase_28 AC 159 ms
77,224 KB
testcase_29 AC 163 ms
77,400 KB
testcase_30 AC 161 ms
77,484 KB
testcase_31 AC 164 ms
77,456 KB
testcase_32 AC 159 ms
77,456 KB
testcase_33 AC 161 ms
77,508 KB
testcase_34 AC 161 ms
77,228 KB
testcase_35 AC 162 ms
77,276 KB
testcase_36 AC 166 ms
77,444 KB
testcase_37 AC 246 ms
78,388 KB
testcase_38 AC 247 ms
78,560 KB
testcase_39 AC 245 ms
78,600 KB
testcase_40 AC 248 ms
78,384 KB
testcase_41 AC 256 ms
78,296 KB
testcase_42 AC 251 ms
78,316 KB
testcase_43 AC 254 ms
78,288 KB
testcase_44 AC 247 ms
78,464 KB
testcase_45 AC 254 ms
77,828 KB
testcase_46 AC 246 ms
78,444 KB
testcase_47 AC 257 ms
78,280 KB
testcase_48 AC 253 ms
78,492 KB
testcase_49 AC 255 ms
78,280 KB
testcase_50 AC 258 ms
78,284 KB
testcase_51 AC 251 ms
78,188 KB
testcase_52 AC 251 ms
78,296 KB
testcase_53 AC 247 ms
78,412 KB
testcase_54 AC 251 ms
78,432 KB
testcase_55 AC 249 ms
78,428 KB
testcase_56 AC 250 ms
78,556 KB
testcase_57 AC 264 ms
78,380 KB
testcase_58 AC 263 ms
78,384 KB
testcase_59 AC 263 ms
78,536 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

T = int(input())
for _ in range(T):
    v,x = map(int,input().split())
    mod = v*x+1
    a = set()
    i = 1
    while len(a) < x:
        c = pow(i,v,mod)
        if c not in a:
            a.add(c)
        i += 1
    a = list(a)
    a.sort()
    print(*a)
0