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