結果
問題 |
No.3204 Permuted Integer
|
ユーザー |
|
提出日時 | 2025-07-18 21:55:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 264 bytes |
コンパイル時間 | 616 ms |
コンパイル使用メモリ | 11,776 KB |
実行使用メモリ | 54,664 KB |
最終ジャッジ日時 | 2025-07-18 21:55:11 |
合計ジャッジ時間 | 7,442 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 25 |
ソースコード
import itertools t = int(input()) n = input() digits = list(n) seen = set() for p in itertools.permutations(digits): num_str = ''.join(p) if num_str in seen: continue seen.add(num_str) num = int(num_str) if num % t == 0: print(1) break else: print(0)