結果
| 問題 | No.3262 水色コーダーさん、その問題d問題ですよ?(1<=d<=N) |
| コンテスト | |
| ユーザー |
回転
|
| 提出日時 | 2025-09-06 13:14:45 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 74 ms / 2,000 ms |
| + 565µs | |
| コード長 | 356 bytes |
| 記録 | |
| コンパイル時間 | 246 ms |
| コンパイル使用メモリ | 96,240 KB |
| 実行使用メモリ | 83,584 KB |
| 最終ジャッジ日時 | 2026-07-14 18:41:22 |
| 合計ジャッジ時間 | 3,573 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 24 |
ソースコード
from itertools import permutations
N = int(input())
cont = []
for _ in range(N):
l,r = list(map(int,input().split()))
cont.append((l,r))
ans = 0
for i in permutations(cont):
now = 0
flag = True
for l,r in i:
if(r < now):
flag = False
break
if(now < l):now = l
ans += flag
print(ans)
回転