蓝桥杯基础练习VIP-报时助手(C语言) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>//二十以内的数字;char arr[25][20]={"zero","one","two","…… 题解列表 2023年04月16日 1 点赞 0 评论 185 浏览 评分:10.0
2864: 单词替换 摘要:解题思路:1.读入一行字符串s、待替换单词a和替换单词b。2.使用stringstream将字符串s分割成单词,并依次判断每个单词是否为待替换单词a,若是,则输出替换单词b;否则输出原单词。3.输出替…… 题解列表 2023年04月21日 0 点赞 0 评论 232 浏览 评分:10.0
屎山代码写法 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cstdio>#include <cstring>#include <algorithm>using names…… 题解列表 2023年04月26日 0 点赞 0 评论 348 浏览 评分:10.0
破解简单密码(switch暴力破解) 摘要:```c #include #include void Decode(char* strs); char translate(char ch); int main() { char p…… 题解列表 2023年05月03日 0 点赞 0 评论 264 浏览 评分:10.0
[编程入门]输出九九乘法表2 摘要:一、解题思路:C参考代码:#include <stdio.h> int main() { printf(" Nine-by-nine Multiplication Table\n"); …… 题解列表 2023年05月06日 0 点赞 0 评论 251 浏览 评分:10.0
LIS二分优化 + 倒序输出方案 (C++) 摘要:## 思路 找出一个子序列,并且是严格从小到大的子序列,结果需要尽可能的大,其实就是最长上升子序列的另外一种说法,读到这里题目就可以开始分析了。 从数据范围可以知道,最多有1e6个单词,用普通…… 题解列表 2023年05月09日 1 点赞 0 评论 329 浏览 评分:10.0
优质题解 逆序数的问题 摘要:## 假如这个题换一种说法,n个人如果是线性排列,要使123456…n变成n…654321, 那么需要的时间总数就是(n-1)+…+5+4+3+2+1=n*(n-1)/2;即1右移n-1步, …… 题解列表 2023年05月28日 1 点赞 1 评论 450 浏览 评分:10.0
1211基础解法(Python) 摘要:注意事项:用import sys的情况下进行多行输入第一个测试点有问题,但是结果没有错误,所以这两种方式有什么区别呢?参考代码:while True: try: a,b = map…… 题解列表 2023年05月29日 1 点赞 0 评论 254 浏览 评分:10.0
第十二届国赛真题-异或变换 摘要:解题思路:存在一个最小的整数x,使得pow(2,x)>=n,则每隔pow(2,x)就会循环一次。注意事项:参考代码:#include<iostream>#include<cstring>using n…… 题解列表 2023年05月31日 0 点赞 0 评论 280 浏览 评分:10.0
A+B for Input-Output Practice (VI) 摘要:#include<stdio.h> int main(){ int a; int b; int sum = 0; while(scanf("%d",&a)!=EOF){ …… 题解列表 2023年06月05日 0 点赞 0 评论 199 浏览 评分:10.0