上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 山东大学23强基班计算机导论第三次习题答案 7-1 计算分段函数[1] 分数 10 作者 颜晖 单位 浙大城市学院 本题目要求计算下列分段函数f(x)的值: 输入格式: 输入在一行中给出实数x。 输出格式: 在一行中按“f(x) = result”的格式输出,其中x与result都保留一位小数。 输 阅读全文
posted @ 2024-03-21 23:47 Icys 阅读(250) 评论(0) 推荐(0)
摘要: T1 #include <stdio.h> int main() { int fahr = 150; int celsius = 5 * (fahr - 32) / 9; printf("fahr = %d, celsius = %d", fahr, celsius); } T2 #include 阅读全文
posted @ 2024-03-15 15:18 Icys 阅读(71) 评论(0) 推荐(0)
摘要: 山东大学23强基班计算机导论第一次习题答案 T1. #include <stdio.h> int main() { printf("Hello World!"); return 0; } T2. #include <stdio.h> int main() { printf("Programming 阅读全文
posted @ 2024-03-08 14:23 Icys 阅读(73) 评论(0) 推荐(0)
摘要: 利用WinRT实现DX截图的方法 阅读全文
posted @ 2024-03-06 16:48 Icys 阅读(729) 评论(1) 推荐(0)
摘要: 同学问的课后作业,顺便加了写注释。 #include<stdio.h> /* * 注意 每周的第一天是星期天 */ int main() { int day_per_mo[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; // 12个 阅读全文
posted @ 2024-02-01 00:57 Icys 阅读(114) 评论(0) 推荐(0)
摘要: 最近打PKU的HPCGAME留下的代码,速度不是很快 const int BLOCK_SIZE = 1024; const int BLOCK_SIZE2 = 256; inline static void block_avx256_16x2( // 电脑不支持AVX512捏 int n,int K 阅读全文
posted @ 2024-02-01 00:51 Icys 阅读(125) 评论(0) 推荐(0)
摘要: 最近打PKU的HPCGAME用的代码,这里只用上了20个zmm寄存器,改变block的大小应该还能优化一下速度。 代码只考虑了方阵,其他非2^n次方阵要自己改代码。具体原理很简单,看看代码就差不多知道。 const int BLOCK_SIZE = 1024; const int BLOCK_SIZ 阅读全文
posted @ 2024-02-01 00:47 Icys 阅读(247) 评论(0) 推荐(0)
摘要: 无视角度,大小变换的找图方法 阅读全文
posted @ 2023-11-20 08:14 Icys 阅读(1432) 评论(0) 推荐(1)
摘要: 通过使用Windows未公开API完成高效的DX方法截图。 阅读全文
posted @ 2023-11-19 20:41 Icys 阅读(4545) 评论(2) 推荐(4)
摘要: NCC算法实现及其优化 本文将集中探讨一种实现相对简单,效果较好的模板匹配算法(NCC) \[R(x,y)= \frac{ \sum_{x',y'} (T'(x',y') \cdot I'(x+x',y+y')) }{ \sqrt{\sum_{x',y'}T'(x',y')^2 \cdot \sum 阅读全文
posted @ 2023-10-21 16:19 Icys 阅读(920) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 8 下一页