上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 49 下一页
摘要: 在一个排列中,如果一对数的前后位置与大小顺序相反,即前面的数大于后面的数,那么它们就称为一个逆序。一个排列中逆序的总数就称为这个排列的逆序数。如2 4 3 1中,2 1,4 3,4 1,3 1是逆序,逆序数是4。给出一个整数序列,求该序列的逆序数。Input第1行:N... 阅读全文
posted @ 2019-01-10 22:10 black_hole6 阅读(237) 评论(0) 推荐(0)
摘要: The SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, compute how many quadruplet (a, b, c, d )... 阅读全文
posted @ 2019-01-10 17:21 black_hole6 阅读(217) 评论(0) 推荐(0)
摘要: Description 某天GZS漫步在学校新建的小公园,他发现那里建成了一些水池和小河道。我们暂且把它们统一看成水池。假设公园旁有一张小公园的地图,上面仅标识了此处是否是水池,你能帮GZS计算出该地图中一共有几个水池吗。Input第一行输入一个整数N,表示共有N组测... 阅读全文
posted @ 2019-01-09 20:15 black_hole6 阅读(162) 评论(0) 推荐(0)
摘要: 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述IG won the S championship and many people are excited, ii ... 阅读全文
posted @ 2019-01-06 22:21 black_hole6 阅读(259) 评论(0) 推荐(0)
摘要: 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 131072K,其他语言262144K64bit IO Format: %lld题目描述Sleeping is a favorite of little bearBaby, because the wet... 阅读全文
posted @ 2019-01-06 22:18 black_hole6 阅读(210) 评论(0) 推荐(0)
摘要: C:思路:做几组数据就基本能发现规律,奇数为-1,偶数为1代码:#include#include#include#includeusing namespace std;int main(){ long long int a; scanf("%lld",&a); if(... 阅读全文
posted @ 2019-01-06 14:31 black_hole6 阅读(181) 评论(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 阅读(141) 评论(0) 推荐(0)
摘要: A.Rabbit的字符串时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 32768K,其他语言65536K64bit IO Format: %lld题目描述Rabbit得到了一个字符串,她的好朋友xxx可以给这个字符串施加一次魔法。魔法可以选择字符串的任... 阅读全文
posted @ 2019-01-04 23:07 black_hole6 阅读(365) 评论(0) 推荐(0)
摘要: Description 自从GZS成为G神之后,追随者不计其数,更是有了大名鼎鼎的拜神论:"吾尝终日编程也,不如须臾之拜拜G神也;吾尝打字刷题也,不如一日三拜G神也;拜拜G神,程序非长也,而出结果;三拜G神,打字非快也,而能AC。吾日三拜G神也!!!“作为菜鸟,经常遇... 阅读全文
posted @ 2019-01-03 19:02 black_hole6 阅读(206) 评论(0) 推荐(0)
摘要: 对于csdn的广告大家想必......又没钱充VIP,怎么办,下面是脚本源码:重要的事说三遍:如有侵权,立即删除!如有侵权,立即删除!如有侵权,立即删除!// ==UserScript==// @name CSDN自动展开+去广告+净化剪贴板+免登陆/... 阅读全文
posted @ 2019-01-03 11:44 black_hole6 阅读(493) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 49 下一页