![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
水题
2020/3/16
这个作者很懒,什么都没留下…
展开
-
Time
传送门 题意:输入四个数字,输出它们的大写形式 #include <stdio.h> using namespace std; int main() { int a,b,c,d; char str1[10][5]= {" _ "," "," _ "," _ "," "," _ "," _ ",&q原创 2018-08-03 10:36:42 · 148 阅读 · 0 评论 -
pushpush
题目描述 You are given an integer sequence of length n, a1,…,an. Let us consider performing the following n operations on an empty sequence b. The i-th operation is as follows: 1.Append ai to the end of ...原创 2018-08-18 13:52:53 · 416 阅读 · 0 评论 -
5218: The Mountain
传送门 5218: The Mountain 时间限制: 1 Sec 内存限制: 128 MB 提交: 106 解决: 92 [提交] [状态] [讨论版] [命题人:admin] 题目描述 All as we know, a mountain is a large landform that stretches above the surrounding land in a limi...原创 2018-08-22 16:27:33 · 225 阅读 · 0 评论 -
Deranging Hat
传送门 题意:给出一个长度不超过1000的字符串S,假设将其升序排后形成的字符串为T,要求对T进行不超过10000次操作将其变成S,每次操作给出两整数A,B,如果A位置的字符不小于B位置的字符则交换两个位置的字符 思路:选择排序,逆序输出即可 代码如下: #include<bits/stdc++.h> using namespace std; int n,coun,a[100...原创 2018-08-29 16:53:53 · 353 阅读 · 0 评论 -
8256: FANG FANG
传送门 题意:给出一个字符串,问最少能用几个Fn表示,输出最小数目,若不能则输出-1。 坑点:输入的字符串中可以含除‘c’和‘f’外的其他字符 思路: 先将前面的f记录,从第一个c开始处理,看跟在后面的f的数目是否大于等于2,最前面的f加在最后的c上。若果大于2则temp++,否则无法组成输出-1. #include <bits/stdc++.h> #define ll l...原创 2018-10-01 15:35:39 · 513 阅读 · 0 评论