c代码记录之灯状态取反 摘要:记录: I.灯打开时置1,灯关闭时置-1,方便取反状态操作 II.每个输出跟一个逗号,但最后不带逗号,需要处理 III.两种思路,一是一轮一轮的对数组进行操作,二是遍历每一个灯进行所有轮操作 …… 题解列表 2023年12月14日 0 点赞 0 评论 347 浏览 评分:0.0
c代码记录之数字统计(用了atoi函数,写完好长时间才检查出来哪里有问题) 摘要:刚开始用atoi写的,一直报错,只能换种方式写 #include #include int main() { int num[10]={0},…… 题解列表 2023年12月14日 1 点赞 0 评论 539 浏览 评分:0.0
编写题解 1762: printf基础练习 摘要:有手就行下面是python的代码python代码开荒,不是一直内容少怎么回事a = 123456789print("0%o 0x%x" %(a, a))…… 题解列表 2023年12月14日 0 点赞 0 评论 806 浏览 评分:0.0
2947: 不吉利日期 Python 简单实现 摘要:解题思路:m保存每个月份的天数,week表示周几,当累加大于7的时候 对7取模即可注意事项:参考代码:w = int(input()) m = [0, 31, 28, 31, 30, 31, 30,…… 题解列表 2023年12月14日 0 点赞 0 评论 420 浏览 评分:0.0
2830: 数字统计 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年12月14日 0 点赞 0 评论 407 浏览 评分:0.0
1043: [编程入门]三个数字的排序(插入排序思想) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a[3] = {0}; for (int…… 题解列表 2023年12月14日 0 点赞 0 评论 342 浏览 评分:0.0
编写题解 2784: 收集瓶盖赢大奖 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b; cin>>a>>b; if(10…… 题解列表 2023年12月14日 0 点赞 0 评论 382 浏览 评分:0.0
C++二维数组装置,可不限与3*3大小 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int arr[3][3]; int i,j; for (i=0;i…… 题解列表 2023年12月14日 0 点赞 0 评论 384 浏览 评分:0.0
c++指针法(指针练习) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ char arr[100]; cin.getline(arr,100…… 题解列表 2023年12月14日 0 点赞 0 评论 456 浏览 评分:0.0
利用数组解决Sn求和 摘要:解题思路:首先明确n和a的关系每当n增加一个数值,a增加一倍可以得到a*10+2;最后对得到的每个a进行储存,最后求和注意事项:参考代码:#include<stdio.h>int main(){ in…… 题解列表 2023年12月14日 0 点赞 0 评论 322 浏览 评分:0.0