結果
| 問題 | No.2593 Reorder and Mod 120 |
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2023-12-26 00:01:07 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 117 ms / 2,000 ms |
| コード長 | 233 bytes |
| 記録 | |
| コンパイル時間 | 179 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 83,968 KB |
| 最終ジャッジ日時 | 2026-04-14 09:33:17 |
| 合計ジャッジ時間 | 3,428 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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