結果
問題 |
No.1644 Eight Digits
|
ユーザー |
|
提出日時 | 2021-08-13 21:43:54 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 231 bytes |
コンパイル時間 | 268 ms |
コンパイル使用メモリ | 82,464 KB |
実行使用メモリ | 54,492 KB |
最終ジャッジ日時 | 2024-10-03 18:10:29 |
合計ジャッジ時間 | 2,303 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 1 WA * 24 |
ソースコード
import itertools k = int(input()) ans = 0 lis = [i for i in range(1,9)] for l in itertools.permutations([lis],8): count = 0 for j in l: count *= 10 count += j if count%k == 0: ans += 1 print(ans)