![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
数组
文章平均质量分 65
各类有关于数组的运用问题
MrYYF_YYF
这个作者很懒,什么都没留下…
展开
-
【C/数组】C字矩阵
万里ACM discuss3 (wlacm.com)#include<stdio.h>void main(){ int n[30][30] = { 0 }; int t, a, b, s, f; scanf("%d", &t); for (int i = 1; i <= t; i++) { scanf("%d", &s); a = 0; b = s - 1; f = 1; for (int j = 1; j <= s * s; j++)原创 2021-05-20 20:12:39 · 235 阅读 · 2 评论 -
【C/结构体/字符串函数】碧蓝航线
万里ACM discuss3 (wlacm.com)#include<stdio.h>#include<string.h>int main(){ struct battleship { char battleship_name[20]; int battleship_power; char battleship_type[2]; int battleship_camp; char battleship_position[10]; }battle.原创 2021-05-20 19:37:53 · 270 阅读 · 2 评论 -
【C/数组/高精度计算】准确计算自然数N的阶乘(N≤50)
第一次写,为了记录一些题目的解题思路,方便日后反思以及优化。还是小白,没学过很多算法,还不会用更高级的函数,如果有纰漏和建议欢迎指正和提出!~(●'◡'●)准确计算自然数N的阶乘(N≤50)题目描述对于自然数N的阶乘,当N比较小时,可以32位整数int范围内准确表示例如12!=479001600<2147483647(231-1)而20!=2432902008176640000<9223372036854775807(263-1)可以在64位整数long long int范围内...原创 2021-04-29 19:22:26 · 413 阅读 · 0 评论