![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
题目总结
文章平均质量分 57
Wanghy__
刚刚接触程序设计的小白
展开
-
210413赛后总结
B:Obtaining the String 题目描述: You are given two strings s and t. Both strings have length n and consist of lowercase Latin letters. The characters in the strings are numbered from 1 to n. You can successively perform the following move any number of times (原创 2021-04-22 21:37:56 · 187 阅读 · 0 评论 -
210406训练赛赛后整理
A题:Collecting Packages 题目描述: There is a robot in a warehouse and n packages he wants to collect. The warehouse can be represented as a coordinate grid. Initially, the robot stays at the point (0,0). The i-th package is at the point (xi,yi). It is guarantee原创 2021-04-22 20:29:35 · 109 阅读 · 0 评论 -
问题 K: 字符串处理
字符串处理(结构体成员创建模板) 题目描述: 输入一个字符串str和一个整数k,输出字符串中出现次数第k多的字符。 输入: 第一行是一个字符串,字符串长度小于10000; 第二行是一个整数k(0<k<10)。 输出: 输出字符串出现次数第k多的字符,如果第k多的字符有多个,输出ASCII码最小的那个字符,单独占一行。 样例输入: hello world 2 样例输出: o 代码: #include<stdio.h> #include<string.h> #include&原创 2021-03-16 20:34:10 · 307 阅读 · 0 评论 -
整数的二进制相加
整数的二进制相加 题目描述: 输入两个整数,大小在[0,63]之间。求它们的二进制和,二进制用8位表示。 输入: 在一行输入一个整数,在另一行输入另一个整数。 输出: 输出它们的二进制和。 样例输入: 5 7 样例输出: 00000101 00000111 00001100 代码: #include<stdio.h> #include<string.h> #include<stdlib.h> void atoD(int a[],int k, int n) { int原创 2021-03-12 19:44:47 · 2107 阅读 · 0 评论