結果
| 問題 |
No.3262 水色コーダーさん、その問題d問題ですよ?(1<=d<=N)
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2025-09-15 01:27:16 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 182 ms / 2,000 ms |
| コード長 | 316 bytes |
| コンパイル時間 | 297 ms |
| コンパイル使用メモリ | 11,904 KB |
| 実行使用メモリ | 15,104 KB |
| 最終ジャッジ日時 | 2025-09-15 01:27:20 |
| 合計ジャッジ時間 | 4,085 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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