![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
qdu
black-hole6
这个作者很懒,什么都没留下…
展开
-
QDU-GZS与素数大法(素数筛法)
Description 自从GZS成为G神之后,追随者不计其数,更是有了大名鼎鼎的拜神论:"吾尝终日编程也,不如须臾之拜拜G神也;吾尝打字刷题也,不如一日三拜G神也;拜拜G神,程序非长也,而出结果;三拜G神,打字非快也,而能AC。吾日三拜G神也!!!“作为菜鸟,经常遇到一些难题,于是就去拜见G神了。G神一看题目,微微一笑说道:“这种水题也算难题?我闭着眼都能一分钟刷十道!”...原创 2019-01-03 19:02:01 · 409 阅读 · 0 评论 -
ZOJ - 3939 The Lucky Week(日期循环节+思维)
Edward, the headmaster of the Marjar University, is very busy every day and always forgets the date.There was one day Edward suddenly found that if Monday was the 1st, 11th or 21st day of that month...原创 2019-04-11 23:36:55 · 312 阅读 · 0 评论 -
2018蓝桥编程题6-9+ 50%的10
6.给定三个整数数组A = [A1, A2, ... AN],B = [B1, B2, ... BN],C = [C1, C2, ... CN],请你统计有多少个三元组(i, j, k) 满足:1. 1 <= i, j, k <= N 2. Ai < Bj < Ck 【输入格式】第一行包含一个整数N。第二行包含N个整数A1, A2, ... A...原创 2019-03-06 22:34:14 · 367 阅读 · 0 评论 -
QDU_组队训练(ABEFGHKL)
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 selected as the first, and should say the number 1. Then the...原创 2019-03-03 17:23:01 · 771 阅读 · 0 评论 -
qdu_组队训练(ABCFIJK)
A - Second-price AuctionDo you know second-price auction? It's very simple but famous. In a second-price auction, each potential buyer privately submits, perhaps in a sealed envelope or over a se...原创 2019-03-08 16:53:08 · 369 阅读 · 0 评论 -
QDU_组队训练(AJFC)
A - Pretty MatrixDreamGrid's birthday is coming. As his best friend, BaoBao is going to prepare a gift for him.As we all know, BaoBao has a lot of matrices. This time he picks an integer matrix...原创 2019-03-02 17:49:43 · 443 阅读 · 0 评论 -
蓝桥训练1-3,5-8题解(自己写的,过了蓝桥官网的数据)
1.输入一个无符号整数x,输出x的二进制表示中1的个数.输入: 76584输出: 7水题:数据应该也不大,long long 也能过代码:#include<cstdio>#include<cstring>#include<iostream>#include<algorithm>#include<queue>...原创 2019-03-02 11:50:33 · 501 阅读 · 0 评论 -
QDU_AP协会18级ST1
A - A + B Problem III have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.InputThe first line of the input contains an integer T(1<=T...原创 2019-03-04 23:07:50 · 488 阅读 · 0 评论 -
QDU_CEF(补)
C - Arthur and TableArthur has bought a beautiful big table into his new flat. When he came home, Arthur noticed that the new table is unstable.In total the table Arthur bought hasnlegs, the ...原创 2019-03-01 10:56:49 · 372 阅读 · 0 评论 -
GZS与小公园(DFS)
Description 某天GZS漫步在学校新建的小公园,他发现那里建成了一些水池和小河道。我们暂且把它们统一看成水池。假设公园旁有一张小公园的地图,上面仅标识了此处是否是水池,你能帮GZS计算出该地图中一共有几个水池吗。Input第一行输入一个整数N,表示共有N组测试数据 每一组数据都是先输入该地图的行数m(0<m<100)与列数n(0<n<100),然后...原创 2019-01-09 20:14:45 · 405 阅读 · 0 评论 -
QDU第一届程序设计大赛——E到I题解法(非官方题解)
题目链接https://qduoj.com/contest/28/problems,密码:qdu1230E题:思路:先进行排序,然后去暴力模拟就可以,但可能WA了几次,导致此题没解出来,有点可惜代码:#include<cstdio>#include<algorithm>#include<cstring>#include<iostre...原创 2019-01-02 17:39:20 · 445 阅读 · 0 评论 -
QDU-GZS and String
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) just after it.GZS wants to convert s to t. But is it possible...原创 2019-01-06 10:21:16 · 250 阅读 · 0 评论 -
别看!看就是不会!(拓展欧几里德求最小正数解)
都说了别看,还看!好吧,既然点进来了,那就告诉你题意:给你一个方程,Ax+By+C=0,给你A,B,C;请找出一组解(x,y),解的要求:x是所有解中的最小正整数,y就是任意一个整数。如果存在这样的解,请给出这个解中的x;如果不存在,请输出 -1。会吗?Input第一行给你三个数,A,B,C(- 2·1e9≤A,B,C≤ 2·1e9),题目保证A^2 +...原创 2019-04-22 00:15:08 · 405 阅读 · 0 评论