第六章 创建REST服务 创建Restful服务,那么前端框架可以使用Angular、React、Vue.js等适合自己的前端技术。 Angular参考书籍 Jeremy Wilken编写的《Angular in Action》以及Yakov Fain和Anton Moiseev编写的《Angula ...
分类:
编程语言 时间:
2020-07-18 19:45:22
阅读次数:
88
考虑用分块解决这个题,一次交换对当前逆序对个数的影响是,加上两倍的在区间$[l+1,r 1]$中比$a_r$小的元素个数,减去两倍的在区间$[l+1,r 1]$中比$a_l$小的元素个数,再根据$a_l$和$a_r$的大小关系决定这两个位置对答案的影响。 可以用$vector$来维护每个块内元素有序 ...
分类:
其他好文 时间:
2020-05-14 01:13:53
阅读次数:
59
As you probably know, Anton goes to school. One of the school subjects that Anton studies is Bracketology. On the Bracketology lessons students usuall ...
分类:
其他好文 时间:
2020-05-08 18:40:45
阅读次数:
82
Anton likes to listen to fairy tales, especially when Danik, Anton's best friend, tells them. Right now Danik tells Anton a fairy tale: "Once upon a t ...
分类:
其他好文 时间:
2020-05-08 16:30:33
阅读次数:
73
Anton and Fairy Tale 思路 瞎扯 一开始猜了一个假结论从第m + 1天开始,每天结束的谷物会比前一天少一个,没仔细读题。。。 正解 我们打表发现,第m天结束后剩余的谷物是$n m$,并且从第m + 1天开始,当天结束时剩余的谷物会比上一天的谷物少,并且满足 $sum[m + i] ...
分类:
其他好文 时间:
2020-05-06 17:54:52
阅读次数:
57
html代码 css代码 JavaScript代码 javascript // 获取货币1对象 let currencyEl_one = document.getElementById("currency one"); // 获取货币2对象 let currencyEl_two = document ...
分类:
Web程序 时间:
2020-05-04 00:43:15
阅读次数:
70
static void StringToMoney() { Console.WriteLine(214748364700.ToString("C",CultureInfo.GetCultureInfo("en-us"))); } ...
恢复内容开始 翻译如下 (我看了半天没明白)然后大佬一眼就看出来了(手动膜拜大佬); 就思路当上面一个数组的某一位和下面一个数组的那一位有不同的时候,上减下如果差小于0就看前面有没有1; 大于0看前面有没有-1; 做法: 用map存第一次出现-1的位置和第一次出现1的位置,然后遍历一遍,看是否可行; ...
分类:
其他好文 时间:
2020-04-12 00:06:25
阅读次数:
76
Payment 时间限制: 1 Sec 内存限制: 128 MB 题目描述 In the Kingdom of AtCoder, only banknotes are used as currency. There are 10100+1 kinds of banknotes, with the v ...
分类:
其他好文 时间:
2020-03-14 21:45:00
阅读次数:
48
In the Kingdom of AtCoder, only banknotes are used as currency. There are10100+110^{100}+110100+1 kinds of banknotes, with the values of 1,10,102,103, ...
分类:
其他好文 时间:
2020-02-17 23:48:20
阅读次数:
67