結果
問題 |
No.1644 Eight Digits
|
ユーザー |
![]() |
提出日時 | 2024-08-17 18:20:32 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 59 ms / 1,000 ms |
コード長 | 129 bytes |
コンパイル時間 | 551 ms |
コンパイル使用メモリ | 82,380 KB |
実行使用メモリ | 76,232 KB |
最終ジャッジ日時 | 2024-08-17 18:20:36 |
合計ジャッジ時間 | 3,215 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
k=int(input()) c=0 from itertools import permutations for p in permutations(list("12345678")): c+=int("".join(p))%k==0 print(c)