結果
問題 | No.1644 Eight Digits |
ユーザー |
|
提出日時 | 2021-08-13 22:01:57 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 51 ms / 1,000 ms |
コード長 | 280 bytes |
コンパイル時間 | 369 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-10-03 18:55:18 |
合計ジャッジ時間 | 2,627 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
from itertools import permutationsfrom sys import stdindef main():input = lambda: stdin.readline()[:-1]K = int(input())x = permutations("12345678", 8)ans = 0for n in x:if not int("".join(n)) % K:ans += 1print(ans)main()