一二三四五 上山打老虎

摘要: 链接:https://pintia.cn/problem-sets/994805046380707840/problems/994805082313310208 矩阵乘法: for(int i=1;i<=a;i++) for(int j=1;j<=y;j++) for(int k=1;k<=b;k+ 阅读全文
posted @ 2021-04-20 22:18 黒川川 阅读(79) 评论(0) 推荐(0)
摘要: 链接:https://pintia.cn/problem-sets/994805046380707840/problems/994805084284633088 思路: 思路1:模拟乘法,计算为了使当前位为1,应该乘的数为几,需要搜索,程序编写麻烦;//没写出来 思路2:模拟除法, 思路参考链接:h 阅读全文
posted @ 2021-04-20 21:46 黒川川 阅读(51) 评论(0) 推荐(0)
摘要: 链接:https://pintia.cn/problem-sets/994805046380707840/problems/994805117167976448 反思:这个题中每个人的名称是五位的数字,但是用int类型存储的话只能得到15分,最后两个测试数据过不去;也就是测试数据中可能存在整数值相同 阅读全文
posted @ 2021-04-20 11:19 黒川川 阅读(151) 评论(0) 推荐(0)