結果
| 問題 |
No.3262 水色コーダーさん、その問題d問題ですよ?(1<=d<=N)
|
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2025-09-06 14:21:49 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 266 bytes |
| コンパイル時間 | 386 ms |
| コンパイル使用メモリ | 82,036 KB |
| 実行使用メモリ | 68,788 KB |
| 最終ジャッジ日時 | 2025-09-06 14:22:30 |
| 合計ジャッジ時間 | 2,825 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 WA * 4 |
ソースコード
n=int(input())
a=[tuple(map(int,input().split())) for i in range(n)]
from itertools import permutations
c=0
for p in permutations(a):
now=0
for l,r in p:
if now<l:
now=l
elif now+1<=r:
now=now+1
else:
break
else:
c+=1
print(c)
sasa8uyauya