結果
| 問題 |
No.1644 Eight Digits
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2021-08-17 22:41:29 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 52 ms / 1,000 ms |
| コード長 | 202 bytes |
| コンパイル時間 | 266 ms |
| コンパイル使用メモリ | 81,876 KB |
| 実行使用メモリ | 65,280 KB |
| 最終ジャッジ日時 | 2024-10-10 23:04:51 |
| 合計ジャッジ時間 | 2,881 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
import itertools
K = int(input())
cnt = 0
for s in itertools.permutations(range(1,9)):
temp = 0
for i in s:
temp *= 10
temp += i
if temp % K == 0:
cnt += 1
print(cnt)
ntuda