高校数学の質問スレ(医者・東大卒専用) Part438 (752レス)
高校数学の質問スレ(医者・東大卒専用) Part438 http://rio2016.5ch.net/test/read.cgi/math/1723152147/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
414: 132人目の素数さん [sage] 2024/12/11(水) 09:02:45.69 ID:qk9aTmTZ " 注射液8本のうち2本が致死的な毒薬である場合 ネズミ1: 注射液1, 2, 3, 4 ネズミ2: 注射液1, 2, 5, 6 ネズミ3: 注射液1, 3, 5, 7 に記載された投与法で実験したら全部のネズミが死亡してしまった。 可能な2つの毒薬の組み合わせをすべて列挙せよ。 " rm(list=ls()) mat=matrix( c(1, 2, 3, 4, 1, 2, 5, 6, 1, 3, 5, 7),nrow=3,by=TRUE) mat cm=t(combn(8,2)) ; cm lost_rats=\(y) (apply(mat,1, \(x) y[1] %in% x) | apply(mat,1, \(x) y[2] %in% x)) |> which() |> sum() lost=apply(cm,1,lost_rats) re=cbind(cm,lost) tmp1=re[re[,3]==6,1:2] ; tmp1 tmp2=cbind(1:7,8) rbind(tmp1,tmp2) |> unique() http://rio2016.5ch.net/test/read.cgi/math/1723152147/414
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 338 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.006s