随笔分类 -  qdu

摘要:A.那人那雨那把伞 Description 体形瘦小,但成就一点也不小,谓之小, 代码很稳,算法掌握所有基础,谓之基, 男主光环,终将逆袭成为大佬,谓之佬。 小基佬,算法基础牢固的大佬!!!丁烁进入集训队后,队中大能mmk为他所起称号,闻者震惊,听者感叹,也不负丁烁青大校赛冠军之名。 而虽说进入了集 阅读全文
posted @ 2019-06-28 20:39 black_hole6 阅读(825) 评论(0) 推荐(1) 编辑
摘要:Floor problem In this problem, we have f(n,x)=Floor[n/x]. Here Floor[x] is the biggest integer such that no larger than x. For example, Floor[1.1]=Flo 阅读全文
posted @ 2019-05-03 11:52 black_hole6 阅读(242) 评论(0) 推荐(0) 编辑
摘要:都说了别看,还看!好吧,既然点进来了,那就告诉你题意:给你一个方程,Ax+By+C=0,给你A,B,C;请找出一组解(x,y),解的要求:x是所有解中的最小正整数,y就是任意一个整数。如果存在这样的解,请给出这个解中的x;如果不存在,请输出 -1。会吗?Input ... 阅读全文
posted @ 2019-04-22 00:15 black_hole6 阅读(276) 评论(0) 推荐(0) 编辑
摘要:Edward, the headmaster of the Marjar University, is very busy every day and always forgets the date.There was one day Edward suddenly ... 阅读全文
posted @ 2019-04-11 23:37 black_hole6 阅读(222) 评论(0) 推荐(0) 编辑
摘要:A - Second-price Auction Do you know second-price auction? It's very simple but famous. In a second-price auction, each potential buye... 阅读全文
posted @ 2019-03-08 16:53 black_hole6 阅读(173) 评论(0) 推荐(0) 编辑
摘要:6.给定三个整数数组A = [A1, A2, ... AN], B = [B1, B2, ... BN], C = [C1, C2, ... CN],请你统计有多少个三元组(i, j, k) 满足:1. 1 #include#include#include#inclu... 阅读全文
posted @ 2019-03-06 22:34 black_hole6 阅读(146) 评论(0) 推荐(0) 编辑
摘要:A - A + B Problem II I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. Inpu... 阅读全文
posted @ 2019-03-04 23:08 black_hole6 阅读(167) 评论(0) 推荐(0) 编辑
摘要:A - Accurately Say "CocaCola"! In a party held by CocaCola company, several students stand in a circle and play a game.One of them is ... 阅读全文
posted @ 2019-03-03 17:23 black_hole6 阅读(289) 评论(0) 推荐(0) 编辑
摘要:A - Pretty Matrix DreamGrid's birthday is coming. As his best friend, BaoBao is going to prepare a gift for him.As we all know, BaoBao... 阅读全文
posted @ 2019-03-02 17:50 black_hole6 阅读(204) 评论(0) 推荐(0) 编辑
摘要:1.输入一个无符号整数x,输出x的二进制表示中1的个数.输入: 76584输出: 7水题:数据应该也不大,long long 也能过代码:#include#include#include#include#include#include#include#includ... 阅读全文
posted @ 2019-03-02 11:51 black_hole6 阅读(170) 评论(0) 推荐(0) 编辑
摘要:C - Arthur and Table Arthur has bought a beautiful big table into his new flat. When he came home, Arthur noticed that the new table i... 阅读全文
posted @ 2019-03-01 10:57 black_hole6 阅读(151) 评论(0) 推荐(0) 编辑
摘要:Description 某天GZS漫步在学校新建的小公园,他发现那里建成了一些水池和小河道。我们暂且把它们统一看成水池。假设公园旁有一张小公园的地图,上面仅标识了此处是否是水池,你能帮GZS计算出该地图中一共有几个水池吗。Input第一行输入一个整数N,表示共有N组测... 阅读全文
posted @ 2019-01-09 20:15 black_hole6 阅读(151) 评论(0) 推荐(0) 编辑
摘要:Description GZS has two strings s and t.In each step, GZS can select arbitrary character c of s and insert any character d (d ≠ c) jus... 阅读全文
posted @ 2019-01-06 10:21 black_hole6 阅读(135) 评论(0) 推荐(0) 编辑
摘要:Description 自从GZS成为G神之后,追随者不计其数,更是有了大名鼎鼎的拜神论:"吾尝终日编程也,不如须臾之拜拜G神也;吾尝打字刷题也,不如一日三拜G神也;拜拜G神,程序非长也,而出结果;三拜G神,打字非快也,而能AC。吾日三拜G神也!!!“作为菜鸟,经常遇... 阅读全文
posted @ 2019-01-03 19:02 black_hole6 阅读(192) 评论(0) 推荐(0) 编辑
摘要:题目链接https://qduoj.com/contest/28/problems,密码:qdu1230E题:思路:先进行排序,然后去暴力模拟就可以,但可能WA了几次,导致此题没解出来,有点可惜代码:#include#include#include#includeus... 阅读全文
posted @ 2019-01-02 17:39 black_hole6 阅读(152) 评论(0) 推荐(0) 编辑

欢迎阅读『qdu』
点击右上角即可分享
微信分享提示