結果

問題 No.1409 Simple Math in yukicoder
ユーザー marroncastlemarroncastle
提出日時 2021-02-26 23:03:29
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 279 bytes
コンパイル時間 260 ms
コンパイル使用メモリ 82,160 KB
実行使用メモリ 83,368 KB
最終ジャッジ日時 2024-04-10 13:53:45
合計ジャッジ時間 32,048 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
59,948 KB
testcase_01 AC 34 ms
52,216 KB
testcase_02 AC 36 ms
53,256 KB
testcase_03 AC 34 ms
52,640 KB
testcase_04 AC 33 ms
53,112 KB
testcase_05 AC 34 ms
52,528 KB
testcase_06 AC 35 ms
53,424 KB
testcase_07 AC 634 ms
65,504 KB
testcase_08 TLE -
testcase_09 AC 547 ms
66,304 KB
testcase_10 AC 1,664 ms
74,076 KB
testcase_11 TLE -
testcase_12 AC 1,541 ms
74,192 KB
testcase_13 AC 624 ms
66,396 KB
testcase_14 AC 500 ms
66,784 KB
testcase_15 AC 739 ms
70,864 KB
testcase_16 AC 785 ms
70,024 KB
testcase_17 TLE -
testcase_18 AC 1,330 ms
73,576 KB
testcase_19 AC 1,415 ms
74,012 KB
testcase_20 AC 1,180 ms
71,628 KB
testcase_21 AC 940 ms
70,144 KB
testcase_22 AC 1,700 ms
74,444 KB
testcase_23 AC 383 ms
66,632 KB
testcase_24 AC 313 ms
64,364 KB
testcase_25 AC 1,651 ms
74,140 KB
testcase_26 AC 1,806 ms
74,820 KB
testcase_27 TLE -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
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 #

import sys,os,io
input = sys.stdin.readline
#input = io.BytesIO(os.read(0,os.fstat(0).st_size)).readline
T = int(input())
for t in range(T):
  v, x = map(int, input().split())
  p = v*x+1
  ans = []
  for i in range(1,p+1):
    if pow(i,x,p)==1:
      ans.append(i)
  print(*ans)
0