摘要: 同学问的课后作业,顺便加了写注释。 #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 阅读(22) 评论(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 阅读(36) 评论(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 阅读(62) 评论(0) 推荐(0) 编辑