C语言回溯法 摘要:解题思路:回溯法注意事项:参考代码:#include<stdio.h> int sum,n; int a[10]; void dfs(int x,int y)//x、y表示第y个加数是x { …… 题解列表 2022年12月27日 0 点赞 0 评论 1001 浏览 评分:8.0
思路清晰 switch+if 就OK了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ struct time { int year; int mon; in…… 题解列表 2022年12月27日 0 点赞 0 评论 469 浏览 评分:0.0
编写题解 1042: [编程入门]电报加密 思路清晰 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char a[100]; gets(a…… 题解列表 2022年12月27日 0 点赞 0 评论 430 浏览 评分:0.0
1141: C语言训练-百钱百鸡问题 摘要:##暴力白给:tw-1f35c: ```c #include int main() { printf("cock=0,hen=25,chicken=75\ncock=4,hen=18,ch…… 题解列表 2022年12月27日 0 点赞 0 评论 581 浏览 评分:0.0
编写题解 1765: 循环入门练习2 (C语言) 摘要:解题思路:不要想太复杂,能被7整除就加起来就行注意事项:参考代码://还是1~1000以内,求这其中只能被7整除的这些数字之和! #include <stdio.h> int main () {…… 题解列表 2022年12月27日 0 点赞 1 评论 463 浏览 评分:0.0
编写题解 1764: 循环入门练习1(C语言) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main () { int sum=0; for (int i = 0; i <=1000; i++) { …… 题解列表 2022年12月27日 0 点赞 0 评论 466 浏览 评分:9.9
编写题解 1763: sizeof的大作用(超级简单) 摘要:解题思路:你应该不喜欢看解释注意事项:参考代码:#include <stdio.h> int main () { printf ("%d %d %d %d %d\n",sizeof (int)…… 题解列表 2022年12月27日 0 点赞 0 评论 485 浏览 评分:0.0
编写题解 1762: printf基础练习(C语言) 摘要:解题思路:注意事项:0%o表示八进制 0x%x表示16进制参考代码:#include <stdio.h> int main () { printf ("0%o 0x%x",1234567…… 题解列表 2022年12月27日 0 点赞 0 评论 941 浏览 评分:9.9
编写题解 1670: 拆分位数(C语言) 摘要:解题思路:int类型除某个数只取整数部分注意事项:%表示取余数参考代码://逆序输出这个三位数,输出个位、十位、百位,三个数字,用空格分开 #include <stdio.h> int main …… 题解列表 2022年12月27日 0 点赞 0 评论 610 浏览 评分:0.0
编写题解 1668: printf基础练习2(C语言) 摘要:解题思路:注意事项:%o表示八进制 %d表示十进制 %x表示十六进制参考代码:#include <stdio.h> int main () { int n; while (~scanf…… 题解列表 2022年12月27日 1 点赞 0 评论 784 浏览 评分:6.0