其他
文章平均质量分 89
Whowell
欢迎自荐或推荐实习/校招(字节)!
加油,加油,朝着自己的梦想!!!!!
展开
-
2018/2/2牛客网挑战参赛C题 列一列。。。。。。。
链接:https://www.nowcoder.com/acm/contest/71/C 来源:牛客网题目描述 小W在计算一个数列{An},其中A1=1,A2=2,An+2=An+1+An。尽管他计算非常精准,但很快他就弄混了自己的草稿纸,他找出了一些他计算的结果,但他忘记了这些都是数列中的第几项。 输入描述:每行包括数列中的一项Ak(k总行数T输出描述:对于每一项Ak,原创 2018-02-03 11:43:40 · 393 阅读 · 0 评论 -
2018 Multi-University Training Contest 3 Problem L. Visual Cube
Problem L. Visual Cube 简单的模拟题,输出一个如图的cube;代码:#include <cstdio>int main(){ int n, a, b, c, mx, my, i, j; char x[100][100]; scanf("%d...原创 2018-07-31 00:33:55 · 166 阅读 · 0 评论 -
2018中国大学生程序设计竞赛 – 网络选拔赛 1001 Buy and Resell [模拟]
1001 Buy and Resell 题目:有1-n个货物,可以在某个点buy,然后在后面的点resell,可以同时买多个,问最大的利润和最小的交易次数。题解:模拟运算,前 i 天都是可以买的,加入待卖序列(x, 0),对于第 i 天如果最小的待卖的价格比a[i]小,那么说明可以卖,然后将(a...原创 2018-08-26 10:55:51 · 330 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第二场)D money [思维题]
D money题意:从1-n一次经过,可以buy或者sell a[i]这样的商品,问交易最少的次数能获得的最大的利润。题解:找最长的1 2 2 3这样的区间,最大利润就是最大的间最小的,这样的交易次数最小。代码:/**2018 nowcoder second D money*...原创 2018-08-22 18:16:11 · 229 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第二场)I car [思维题]
I car题意:一个n*n的方格,在边缘放置car,car 只能以相同的速度从一边走到一边,不能相撞,并且不能走有障碍物的一行题解:脑补一下,就是题解中的,如果n是偶数,那么就是保证每行每列只有一个就是2*n,如果是奇数,那么就是需要注意中间那个一行一列只能放一个,否则会相撞,...原创 2018-08-24 23:22:18 · 183 阅读 · 0 评论 -
“浪潮杯”第九届山东省ACM大学生程序设计竞赛 A - Anagram[思维+字符串]
题目:给两个字符串A,B通过给定的操作,A->B;感觉水题,瞎搞吧。。。代码:#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#define ll long long#define INF 1e9+7;using namespa...原创 2018-08-28 15:39:39 · 271 阅读 · 0 评论 -
“浪潮杯”第九届山东省ACM大学生程序设计竞赛 E - Sequence [最小值次小值滚动]
题目:在一个数列中,假如一个数比在它之前出现的任意一个数大,那么它是一个好数,现在必须删去一个数,使剩余的数好数最多,多个解输出最小值.解题思路:最大最小值记录一下,记录一个数所关联的good数的度,取最小的就可以啦。。。代码:#include<iostream>#include<cstdio>#include<cstring>#incl...原创 2018-08-29 09:30:45 · 382 阅读 · 0 评论 -
第六届“浪潮杯”山东省 D Stars [尺取法]
StarsTime Limit: 15000 ms Memory Limit: 65536 KiBSubmit Statistic DiscussProblem DescriptionThere are N (1 ≤ N ≤ 400) stars in the sky. And each of them has a unique coordinate (x, y) (1 ≤ x, y ≤ N). ...原创 2018-05-03 15:31:09 · 145 阅读 · 0 评论 -
Software CRC ZOJ - 1164
Software CRC ZOJ - 1164题目大意:源代码 #include #include #include #include #define Generator 34943int main(){ unsigned char c, flag; int count; union {原创 2018-01-21 10:59:26 · 219 阅读 · 0 评论 -
Codeforces Round #487 (Div. 2) A. A Blend of Springtime [思维题]
A. A Blend of Springtimetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputWhen the curtains are opened, a canvas unfolds outside. Kanno marvels at al...原创 2018-06-12 20:00:09 · 186 阅读 · 0 评论 -
2018/2/2牛客网挑战参赛A题 找一找!!!!水题。。。。
链接:https://www.nowcoder.com/acm/contest/71/A 来源:牛客网题目描述 给定n个正整数,请找出其中有多少个数x满足:在这n个数中存在数y=kx,其中k为大于1的整数 输入描述:第一行输入一个n 接下来一行输入n个正整数ai输出描述:输出符合条件个数示例1 输入5 1 2 3 4 5输出2备注:1≤n,ai≤原创 2018-02-02 20:25:05 · 310 阅读 · 0 评论 -
Hanoi Tower Troubles Again! ZOJ - 1239
题目链接题目大意 : 给n个pegs,有很多balls;两个ball之和必须是一个平方数; 给定一个n,最多能放多少个球???? (找规律)2 4 4 6 6 8 8 10 ; 水题不多解释啦!!!!!!!!includeincludeusing namespace std; //打表; int a[52]; int main() { int t,temp = 2;原创 2017-09-11 17:28:49 · 433 阅读 · 0 评论 -
Laddu
Laddu All submissions for this problem are available.Read problems statements in Mandarin Chinese, Russian and Vietnamese as well.You might have heard about our new goodie distribution program aka th...原创 2018-04-12 17:15:32 · 237 阅读 · 0 评论 -
D.Triple Nim(打表+找规律)
Triple NimTime Limit: 2000 ms Memory Limit: 65536 KiBSubmit StatisticProblem DescriptionAlice and Bob are always playing all kinds of Nim games and Alice always goes first. Here is the rule of Nim gam...原创 2018-04-27 15:53:18 · 270 阅读 · 0 评论 -
Educational Codeforces Round 45 990C. Bracket Sequences Concatenation Problem [思维]
C. Bracket Sequences Concatenation Problemtime limit per test:2 secondsmemory limit per test:256 megabytesinput:standard inputoutput:standard outputA bracket sequence is a string containing only chara...原创 2018-06-11 15:51:43 · 350 阅读 · 0 评论 -
Educational Codeforces Round 45 990 E. Post Lamps [ 思维 + 贪心 ]
E. Post Lampstime limit per test:2 secondsmemory limit per test:256 megabytesinput:standard inputoutput:standard outputAdilbek's house is located on a street which can be represented as the OX axis. T...原创 2018-06-12 10:31:38 · 719 阅读 · 3 评论 -
2018 ccpc湘潭邀请赛 F -Sorting [思维+排序]
SortingTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 415 Accepted Submission(s): 114Problem DescriptionBobo has n tuples (a1,b1,c1),(a2,b2,...原创 2018-06-01 11:29:32 · 740 阅读 · 0 评论 -
牛客网练习赛15__沃老师学生的成绩
沃老师学生的成绩题目描述 第一次期中考终于结束啦!沃老师是个语文老师,他在评学生的作文成绩时,给每位学生的分数都是一个小于10的非负小数。Amy 8.999999999999999999999999999999999999999990000Bob 8.9999999999999999999999999999999999999999800Cat 8.9999999999999999999999999...原创 2018-04-13 22:14:28 · 215 阅读 · 0 评论 -
ACM-ICPC 2018 沈阳赛区网络预赛 [菜菜的我!!!]
A. Gudako and Ritsuka [博弈动态规划] 题库链接 通过率: 1.55% 通过人数: 2 留坑 B. Call of Ac...原创 2018-09-13 20:45:42 · 428 阅读 · 0 评论