結果
| 問題 | No.3262 水色コーダーさん、その問題d問題ですよ?(1<=d<=N) |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2025-09-15 01:27:16 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 180 ms / 2,000 ms |
| + 564µs | |
| コード長 | 316 bytes |
| 記録 | |
| コンパイル時間 | 580 ms |
| コンパイル使用メモリ | 21,540 KB |
| 実行使用メモリ | 19,836 KB |
| 最終ジャッジ日時 | 2026-07-15 02:16:44 |
| 合計ジャッジ時間 | 5,117 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 24 |
ソースコード
N=int(input())
P=[list(map(int,input().split())) for i in range(N)]
from itertools import permutations
L=list(permutations(range(N)))
ANS=0
for X in L:
now=0
for x in X:
l,r=P[x]
if r<now:
break
else:
now=max(now,l)
else:
ANS+=1
print(ANS)
titia