結果
問題 | No.1644 Eight Digits |
ユーザー | SidewaysOwl |
提出日時 | 2021-08-13 21:30:48 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 66 ms / 1,000 ms |
コード長 | 183 bytes |
コンパイル時間 | 199 ms |
コンパイル使用メモリ | 82,368 KB |
実行使用メモリ | 76,160 KB |
最終ジャッジ日時 | 2024-10-03 17:19:45 |
合計ジャッジ時間 | 2,833 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
from itertools import permutations k = int(input()) l = [str(i+1) for i in range(8)] ans = 0 for tpl in permutations(l): if int("".join(tpl)) % k == 0: ans += 1 print(ans)