結果
| 問題 |
No.2593 Reorder and Mod 120
|
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2023-12-25 23:55:27 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 110 ms / 2,000 ms |
| コード長 | 233 bytes |
| コンパイル時間 | 328 ms |
| コンパイル使用メモリ | 82,388 KB |
| 実行使用メモリ | 85,192 KB |
| 最終ジャッジ日時 | 2024-09-27 14:48:26 |
| 合計ジャッジ時間 | 3,676 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 26 |
ソースコード
import collections
N = int(input())
C = collections.Counter(list(input()))
hachi = set()
if N>4:
N=3
for i in range(10**(N-1),10**N):
if not (collections.Counter(list(str(i))) - C):
hachi.add(i%40)
print(len(hachi))
H20