結果
問題 | No.1644 Eight Digits |
ユーザー | O2MT |
提出日時 | 2021-08-14 01:03:49 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 60 ms / 1,000 ms |
コード長 | 191 bytes |
コンパイル時間 | 157 ms |
コンパイル使用メモリ | 82,264 KB |
実行使用メモリ | 68,028 KB |
最終ジャッジ日時 | 2024-10-04 02:49:38 |
合計ジャッジ時間 | 2,887 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
from itertools import permutations K = int(input()) ans = 0 for l in permutations(range(1,9)): num = 0 for i in range(8): num += 10**i*l[i] if num%K == 0: ans += 1 print(ans)