結果
| 問題 | No.2593 Reorder and Mod 120 |
| コンテスト | |
| ユーザー |
koheijkt
|
| 提出日時 | 2026-02-10 20:59:38 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,131 bytes |
| 記録 | |
| コンパイル時間 | 395 ms |
| コンパイル使用メモリ | 82,260 KB |
| 実行使用メモリ | 85,656 KB |
| 最終ジャッジ日時 | 2026-02-10 20:59:42 |
| 合計ジャッジ時間 | 3,484 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 4 WA * 22 |
ソースコード
import sys, math
sys.setrecursionlimit(10**8)
sys.set_int_max_str_digits(0)
INF = 1e18
MOD = 120
from bisect import bisect_left, bisect_right
from collections import deque, defaultdict, Counter
from itertools import product, combinations, permutations, groupby, accumulate
from heapq import heapify, heappop, heappush
input = sys.stdin.readline
def I(): return input().rstrip()
def II(): return int(input().rstrip())
def IS(): return input().rstrip().split()
def MII(): return map(int, input().rstrip().split())
def LI(): return list(input().rstrip())
def TII(): return tuple(map(int, input().rstrip().split()))
def LII(): return list(map(int, input().rstrip().split()))
def LSI(): return list(map(str, input().rstrip().split()))
def GMI(): return list(map(lambda x: int(x) - 1, input().rstrip().split()))
def kiriage(a, b): return (a+b-1)//b
N = II()
S = LI()
c = Counter(S)
ans = 0
for i in range(1, 1000):
if '0' in str(i).zfill(3):
continue
c2 = Counter(str(i))
for k, v in c2.items():
if c[k] >= v:
continue
else:
break
else:
ans += 1
print(ans)
koheijkt