jswwsj
jswwsj
全部文章
分类
cf(15)
dfs(1)
zoj(6)
并查集(2)
快速幂(1)
思维(2)
搜索(1)
最短路(2)
未归档(27)
模拟(1)
追求(1)
题解(3)
归档
标签
去牛客网
登录
/
注册
jswwsj的博客
全部文章
(共62篇)
博主简介
大一在读,acmer菜鸟一只,虽然菜,但我会在acm的路上一直走下去。
2019-06-05
0
519
Codeforces Round #563 (Div. 2) C - Ehab and a Special Coloring Problem
You're given an integer n. For every integer i from 2 to n, assign a positive integer ai such that the following conditions hold: For any pair of ...
2019-06-04
0
633
Codeforces Round #563 (Div. 2) B Ehab Is an Odd Person
You're given an array a of length n . You can perform the following operation on it as many times as you want: Pick two integers i and j (1≤i,j≤...
2019-06-04
0
617
Codeforces Round #563 (Div. 2) A Ehab Fails to Be Thanos
You're given an array a of length 2n. Is it possible to reorder it in such way so that the sum of the first n elements isn't equal to the sum of the ...
2019-06-04
0
810
牛牛的幂运算
题目描述 牛牛在做一道数学题,他发现自己不怎么会做,请你帮帮他 求有多少a,b,c,d满足a^b = c^d, 1<=a,b,c,d<=n, 模 10^9+7 输入描述: 输入一个整数n (1 ≤ n ≤ 109) 输出描述: 输出一个整数 示例1 输...
2019-05-29
0
551
EOJ Monthly 2019.5 (based on May Selection) B. 幂运算
B. 幂运算 单点时限: 1.0 sec 内存限制: 256 MB QQ小方以前不会幂的运算,现在他会了,所以他急切的想教会你。 对于形如 xa 的计算,可以归结到乘法运算 xa=∏a1x 。 单单讲给你听肯定是不够的,为了表现自己,QQ小方现在要考考你。 QQ小方现在想知道有多少四元组...
2019-05-29
0
614
Codeforces Round #562 (Div. 2) B - Pairs
B. Pairs time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Toad Ivan has m pairs...
2019-05-27
0
521
Codeforces Round #562 (Div. 2) A - Circle Metro
A. Circle Metro time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output The circle line ...
2019-05-27
0
713
2019CCPC湖南全国邀请赛(广东省赛、江苏省赛)重现赛 K.SSY and JLBD
#include<cstdio> #include<cstring> using namespace std; char str[14][14]; int main(){ int i; while(scanf("%s",str[0])!=E...
2019-05-20
0
573
2019CCPC湖南全国邀请赛(广东省赛、江苏省赛) C.Chika and Friendly Pairs
Problem Description Chika gives you an integer sequence a1,a2,…,an and m tasks. For each task, you need to answer the number of "friendly pairs&...
2019-05-20
0
658
首页
上一页
1
2
3
4
5
6
7
下一页
末页