結果

問題 No.1644 Eight Digits
ユーザー convexineqconvexineq
提出日時 2021-08-13 21:27:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 59 ms / 1,000 ms
コード長 149 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 82,340 KB
実行使用メモリ 76,236 KB
最終ジャッジ日時 2024-04-14 16:42:14
合計ジャッジ時間 2,720 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
75,932 KB
testcase_01 AC 57 ms
76,032 KB
testcase_02 AC 55 ms
75,892 KB
testcase_03 AC 55 ms
75,996 KB
testcase_04 AC 59 ms
76,120 KB
testcase_05 AC 58 ms
75,996 KB
testcase_06 AC 58 ms
75,824 KB
testcase_07 AC 55 ms
75,956 KB
testcase_08 AC 55 ms
75,988 KB
testcase_09 AC 59 ms
76,196 KB
testcase_10 AC 59 ms
76,084 KB
testcase_11 AC 58 ms
76,156 KB
testcase_12 AC 58 ms
76,236 KB
testcase_13 AC 57 ms
76,236 KB
testcase_14 AC 58 ms
75,848 KB
testcase_15 AC 58 ms
75,908 KB
testcase_16 AC 57 ms
76,160 KB
testcase_17 AC 57 ms
75,800 KB
testcase_18 AC 58 ms
75,828 KB
testcase_19 AC 54 ms
75,788 KB
testcase_20 AC 58 ms
76,004 KB
testcase_21 AC 58 ms
75,972 KB
testcase_22 AC 59 ms
75,888 KB
testcase_23 AC 55 ms
75,768 KB
testcase_24 AC 56 ms
75,848 KB
testcase_25 AC 56 ms
75,868 KB
testcase_26 AC 56 ms
75,896 KB
testcase_27 AC 55 ms
75,976 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import permutations
n = int(input())
ans = 0
for a in permutations("12345678"):
    v = int("".join(a))
    ans += (v%n==0)
print(ans)
0