ToDone
-
ABC085Cå°ç·æ¤è¨¼ï¼Kaggle-Intermediate Machine Learning-Step4,5
Â
ABC085C-Otoshidamaåé¡
æ¤è¨ãã¦ãã解æ³ï¼å°ãéã£ã¦ããï¼
ãæç·æ°Næã¨ãæã®çµåãã¯Nã®ç¯å²å ã§ä¸ä¸ããï¼ä¾ãã°10000åxï¼5000åyï¼1000åzæã®æï¼
[x,y,z]=[0,0,0]
ããåãã¦x=0ã®æï¼yã¨zã®çµåããæ¢ãå¿ è¦ãããï¼ï¼ï¼ï¼
Â
éããï¼å¤§ããæ°ããé çªã«æ¸ããã¦ããæ¹ãè¯ãï¼
ã¾ãxã®ææ°æ±ºãã¦æ¬¡yã®ææ°ï¼æå¾ã«zã®ææ°ã®é ã«(詳細çç¥)
1ï¼xã®ææ°æ±ºããforï¼Y>=10000ï¼x; x++ï¼
2ï¼forï¼Y-10000*x>=5000*y; y++ï¼
3ï¼forï¼Y-10000*x-5000*y>=1000*z; z++)
4ï¼if(10000*x+5000*y+1000*z == Y){ printf(x,y,z)}else{printf(-1-1-1)}
Â
Kaggle-Intermediate Machine Learning-Step4,5
Pipelineã¨Cross-validationã«ã¤ãã¦ãã¥ã¼ããªã¢ã«çµäºï¼
Kaggle NBã§ã³ã¼ãå®è¡ããªããåå¼·ã§ããã®ã¯ãããã©ï¼pythonã®æ©æ¢°å¦ç¿ã©ã¤ãã©ãªãåçç¡ç¨ã§ä½¿ã£ã¦ããããï¼ä¸èº«ãååã«ç解ã§ãã¦ãããï¼å¿ç¨ãã§ããªããã¿ã¼ã³ãå¤ãï¼éå»åã®è§£ãæ¹ã ãè¦ãã¦ãã¦ï¼å°ãæ»ã£ãåé¡ã«ãªã£ãé端解ããªããªãã¿ãããªæãï¼
ã©ã¤ãã©ãªãè±å¯ãªã®ã¯ä½¿ãå´ã¨ãã¦ãããããã追ãã¤ãã®ã¯å¤§å¤ï¼
Ctrlæ¼ããªããã¢ã¸ã¥ã¼ã«ã«ã«ã¼ã½ã«åãããã¨helpè¦ããã®ãããããï¼
Â
Â