結果

問題 No.1644 Eight Digits
ユーザー convexineqconvexineq
提出日時 2021-08-13 21:27:18
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 94 ms / 1,000 ms
コード長 149 bytes
コンパイル時間 382 ms
コンパイル使用メモリ 87,080 KB
実行使用メモリ 77,592 KB
最終ジャッジ日時 2023-07-27 03:18:18
合計ジャッジ時間 4,272 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
77,308 KB
testcase_01 AC 91 ms
77,232 KB
testcase_02 AC 88 ms
77,268 KB
testcase_03 AC 92 ms
77,216 KB
testcase_04 AC 93 ms
77,496 KB
testcase_05 AC 93 ms
77,308 KB
testcase_06 AC 92 ms
77,500 KB
testcase_07 AC 89 ms
77,416 KB
testcase_08 AC 90 ms
77,288 KB
testcase_09 AC 94 ms
77,332 KB
testcase_10 AC 93 ms
77,340 KB
testcase_11 AC 93 ms
77,432 KB
testcase_12 AC 94 ms
77,348 KB
testcase_13 AC 93 ms
77,292 KB
testcase_14 AC 94 ms
77,216 KB
testcase_15 AC 92 ms
77,328 KB
testcase_16 AC 92 ms
77,276 KB
testcase_17 AC 92 ms
77,292 KB
testcase_18 AC 91 ms
77,476 KB
testcase_19 AC 89 ms
77,280 KB
testcase_20 AC 94 ms
77,592 KB
testcase_21 AC 94 ms
77,352 KB
testcase_22 AC 92 ms
77,300 KB
testcase_23 AC 91 ms
77,200 KB
testcase_24 AC 88 ms
77,296 KB
testcase_25 AC 91 ms
77,424 KB
testcase_26 AC 89 ms
77,240 KB
testcase_27 AC 94 ms
77,352 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