![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
题解
sdutlyq
这个作者很懒,什么都没留下…
展开
-
2020-08-17 SDUT 2020 Summer Individual Contest - 10(for 19)Div.1题解
I - Integer Prefix (水)题目意思就是让你求数字前缀,如果前缀不是数字,输出-1 水题#include <bits/stdc++.h>#define ll long long#define ull unsigned long long#define inf 0x3f3f3f3f#define INF 0x3f3f3f3f3f3f3f3fusing namespace std;int main(){ char s[300000]; int原创 2020-08-19 09:38:57 · 691 阅读 · 0 评论 -
2020-08-13 SDUT 2020 Summer Team Contest 6th(for 19)总结
A - Secrete Master Plan这道题的题意就是要我们输入两个2*2的矩阵,通过变换看这两个矩阵是否相等。原本想通过字母循环控制判断,但是写完了发现有很多地方不太好搞(自己太菜了),所以就想2行2列直接枚举吧。。唉????#include <bits/stdc++.h>using namespace std;int main(){ int a[10][10],b[10][10],k,t,f; scanf("%d",&t); for(原创 2020-08-14 10:24:50 · 103 阅读 · 0 评论 -
SDUT 2020 Summer Individual Contest - 5(for 19) Div.1题解
自己太菜了,就做出了2个题,下面是按我做题顺序写的J - Time Limit这题挺简单,就是按照题目要求模拟就行,但是没看到是偶数,所以错了1次`#include <bits/stdc++.h>#define ll long long#define ull unsigned long longusing namespace std;int main(){ int t,n,i,ans; int a[1000]; scanf("%d",&t原创 2020-08-08 17:25:04 · 162 阅读 · 0 评论 -
F-三角形
链接:https://ac.nowcoder.com/acm/contest/5758/F来源:牛客网题目描述小明有一根长度为a的木棒,现在小明想将木棒分为多段(每段木棒长度必须为整数),使得分隔后的木棍中,取出的任意三段都不能构成三角形,小明想知道木棒最多被分成几段?输入描述:输入数据的第一行是t,表示数据的组数, 接下来每组数据输入一个a(t<=1000, 1 <= a < 2^64 - 1)输出描述:对于每组输入样例,打印木棒最多被分为多少段示例1输入复制2原创 2020-06-01 21:36:07 · 671 阅读 · 0 评论 -
B-减成一
链接:https://ac.nowcoder.com/acm/contest/5758/B来源:牛客网题目描述存在n个数,每次操作可以任选一个区间使得区间内的所有数字减一。问最少多少次操作,可以让所有数都变成1。数据保证一定有解。输入描述:输入t,代表有t组数据。每组数据输入n,代表有n个数。接下来一行输入n个数,数字大小小于1e6。(t<=1000,n<1e5,∑n < 1e6)输出描述:每组数据输出一个整数代表最少需要操作的次数。示例1输入复制161 3 5原创 2020-06-01 20:57:06 · 610 阅读 · 0 评论 -
A. Archmage
Archmage (AM for short) is a hero unit in Watercraft III.He has n mana at most and two powerful skills which enable him to show great strength in battle:Use x mana to summon a Water Element.Brilliance Aura restores y mana for AM in a second, and it is原创 2020-05-30 20:44:23 · 937 阅读 · 0 评论 -
F - Exchange Gym - 101102F
Given a string of lowercase English letters. You are allowed to choose two letters that exist in any position in the string, replace all occurrences of the first letter you chose with the second one, and replace all occurrences of the second letter you cho原创 2020-05-20 22:06:48 · 256 阅读 · 0 评论 -
查查查乐乐
“查查查乐乐”是一段古老神秘的咒语,只有被选中的魔法师才有资格使用这一段咒语并享用它所带来的力量;而如果这段咒语出现在了不具资格的魔法师的口中,这个魔法师将会遭到咒语的反噬并付出可怕的代价。这个学期,镁团在一家魔法早教学校做兼职,他的任务是教小学生们魔法并帮助他们准备一年一度的全国魔法奥林匹克竞赛 (NOMP)。今天,镁团在整理图书的时候,突然发现一本课外教材中包含了 t 段只由查和乐组成的咒语。让小学生们阅读这些咒语是非常危险的:他们可能会在无意识中念出“查查查乐乐”。因此,作为一名富有责任心的儿童教原创 2020-05-19 17:04:22 · 592 阅读 · 0 评论 -
C题
Unacknowledged scientist Victor conducts a pseudoscientific research of the relation between integers that cross his mind and the integer that comes into his assistant’s mind. He wrote the integers a 1, …, a n which had crossed his mind. Then it turned up原创 2020-05-16 17:33:12 · 413 阅读 · 1 评论 -
Card Game
Zeyad and Ehab are playing a simple card game, each player initially has a deck of n cards numbered from 1 to n, the game lasts n turns and in each turn both players privately choose one card and then both players reveal the chosen cards, the player that c原创 2020-05-15 09:43:29 · 420 阅读 · 0 评论