紫の薔薇の人 |
16C4-4*2-4*4*12*2=1428
|
3月21日(木) 0:10:40
53244 |
ベルク・カッツェ |
16×15×14×13÷(4×3×2×1)=1820
4×4×12×2+4×2=392 1820-392=1428 全体からだめなものを引きました。 計算間違えて3回目でやっと正解です。 |
3月21日(木) 0:10:48
53245 |
長野美光 |
16C4 から、4個並ぶ8通りと、3個並ぶ384通りを引きました。 |
静岡県
3月21日(木) 0:11:03
HomePage:ヨッシーの算数・数学の部屋 53246 |
ゴンとも |
今日はリアルタイムで十進Basic で
for a=0 to 1 for b=0 to 1 for c=0 to 1 for d=0 to 1 if a+b+c+d=>3 then goto 130 for e=0 to 1 for f=0 to 1 for g=0 to 1 for h=0 to 1 if e+f+g+h=>3 then goto 90 for i=0 to 1 for j=0 to 1 for k=0 to 1 for l=0 to 1 if i+j+k+l=>3 then goto 50 for m=0 to 1 if a+e+i+m=>3 then goto 40 for n=0 to 1 if b+f+j+n=>3 then goto 30 for o=0 to 1 if c+g+k+o=>3 then goto 20 for p=0 to 1 if m+n+o+p=>3 or d+h+l+p=>3 then goto 10 if a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p=4 then let s=s+1 10 next p 20 next o 30 next n 40 next m 50 next l 60 next k 70 next j 80 next i 90 next h 100 next g 110 next f 120 next e 130 next d 140 next c 150 next b 160 next a print s end 1428……(答え)……(答え) |
豊川市
3月21日(木) 0:13:24
53247 |
今年から高齢者 |
16ヶ所のうち4ヶ所を選ぶ方法_1820とおり
4個が1列に並ぶ_8とおり 3個が1列に並び、残りが12ヶ所のどこかに位置する_8*4*12=384 1820−8−384=1428 |
3月21日(木) 0:23:14
53248 |
手描き図面職人 |
Python programで解いて見ました。プログラムは、
from itertools import combinations def count_valid_placements(grid_size,ball_count): points=[(i,j) for i in range(grid_size) for j in range(grid_size)] valid_placements=0 for ball_positions in combinations(points,balls_count): rows=[0]*grid_size cols=[0]*grid_size for position in balls_positions: rows[position[0]] +=1 cols[position[1]] +=1 if all(x<=2 for x in rows) and all(x<=2 for x in cols): valid_placements +=1 return valid_plcements total_placements=count_valid_placements(4,4) print(f"赤いボールを配置する方法は全部で{total_placements}通りです。") プログラムは、copilotに作って貰いました。私はこんなハイレベルなプログラムは、作れません。 |
3月21日(木) 8:50:45
53249 |
とまぴょん |
今週の問題もchatGPT3.5に解かせてみましたが、誤答でした。プロンプトにもっと工夫がいるのかな? |
3月21日(木) 9:05:25
53250 |
手描き図面職人 |
chatGPT3.5は画像認識の機能はありませんよ。 |
3月21日(木) 9:34:12
53251 |
手描き図面職人 |
chatGPT3.5で問題を、上の図のような、を除いてコピーアンドペーストして、やってみましたが正解のプログラムを作成してくれました。 |
3月21日(木) 10:21:26
53252 |
とまぴょん |
私もコピーペースト(図を除いて)だったんですけど。回答のばらつきなんですかね? |
3月21日(木) 14:11:11
53253 |
「数学」小旅行 |
またしても、今頃になってしまいました。
縦の列に、1,1,1,1のときと、2,1,1のときと、2,2のときで、 横の行に2個以上並ばないような置き方を数えました。 |
3月21日(木) 15:03:42
53254 |
手描き図面職人 |
chatGPT4.0は画像認識の機能もあるので、使える環境の人は試しにぜんぶをコピーアンドペーストして、確かめてください。 |
3月21日(木) 16:24:28
53255 |
巷の夢 |
何回計算してもそのたびに値が違い、悩みぬいていたのですが、
何人かの方がコメントされている全体から一直線上に4個並ぶ 場合と3個並び他の箇所に1個並ぶ場合を引いてみると、これまでの 計算が何だったのと、拍子抜けするほど簡単に正解に辿り着きました。 いやはや疲れました。 |
真白き富士の嶺
3月21日(木) 18:13:37
53256 |
手描き図面職人 |
copilotはchatGPT4.0の機能を含むのでしょうか? |
3月22日(金) 15:56:56
53257 |
「数学」小旅行 |
出来合いのプログラムですが、Rubyで、
c=0 (0..15).to_a.combination(4).to_a.each{|x|m=Array.new(16,0);m[x[0]]=1;m[x[1]]=1;m[x[2]]=1;m[x[3]]=1;c+=1 if m[0]+m[1]+m[2]+m[3]<3and m[4]+m[5]+m[6]+m[7]<3and m[8]+m[9]+m[10]+m[11]<3and m[12]+m[13]+m[14]+m[15]<3and m[0]+m[4]+m[8]+m[12]<3and m[1]+m[5]+m[9]+m[13]<3and m[2]+m[6]+m[10]+m[14]<3and m[3]+m[7]+m[11]+m[15]<3} p c もっと工夫しないと、とは思いつつ。 |
3月27日(水) 9:40:33
53258 |