传送门:https://codeforces.com/contest/1167/problem/B 题意: 交互题:现在你有6个数4, 8, 15, 16, 23, 42组成的某种组合,你可以询问系统四次,每次询问的格式为?i j 系统会回复你ai aj的值,问你这个组合是哪种,有解且解是唯一的 题 ...
分类:
其他好文 时间:
2019-05-16 16:31:00
阅读次数:
115
You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time ...
分类:
其他好文 时间:
2019-05-14 20:44:43
阅读次数:
174
数据库版本为Mariadb5.5,使用K8S进行管理mysql-uroot-pxxxx<xxxxx.sql在本地提示ERROR2013(HY000)atline1320:LostconnectiontoMySQLserverduringquery这个是因为mysql的max_allow_packet默认的只有16MB,我们在mysql的配置文件中添加一行max_allowed_packet=
分类:
数据库 时间:
2019-05-13 17:47:44
阅读次数:
180
Best Cow Line Description FJ is about to take his N (1 ≤ N ≤ 2,000) cows to the annual"Farmer of the Year" competition. In this contest every farmer a ...
分类:
其他好文 时间:
2019-05-11 12:10:26
阅读次数:
108
[TOC] 题目描述: 你正在和你的朋友玩 "猜数字" (Bulls and Cows)游戏:你写下一个数字让你的朋友猜。每次他猜测后,你给他一个提示,告诉他有多少位数字和确切位置都猜对了(称为“Bulls”, 公牛),有多少位数字猜对了但是位置不对(称为“Cows”, 奶牛)。你的朋友将会根据提示 ...
分类:
其他好文 时间:
2019-05-10 16:23:38
阅读次数:
126
题目简述:给出一棵n个点的树,每个点上有C_i头牛,问每个点k步范围内各有多少头牛。 如果 i点由其相连的点进行转移 dp[i][j]+=dp[v][j-1] 这样会有重复的情况 可以发现 重复是由j-2造成的!!!! 想一想 #include<bits/stdc++.h> using namesp ...
分类:
其他好文 时间:
2019-05-09 20:13:42
阅读次数:
114
链接:https://vjudge.net/problem/POJ-1986#author=0 题意: Farmer John's cows refused to run in his marathon since he chose a path much too long for their le ...
分类:
其他好文 时间:
2019-05-09 13:42:20
阅读次数:
122
Yogurt factory Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 16669 Accepted: 8176 Description The cows have purchased a yogurt factory th ...
分类:
其他好文 时间:
2019-05-03 18:35:33
阅读次数:
99
题意 Language:DefaultRound Numbers Time Limit: 2000MSMemory Limit: 65536KTotal Submissions: 17762Accepted: 7423DescriptionThe cows, as you know, have no ...
分类:
其他好文 时间:
2019-05-03 11:36:18
阅读次数:
114
Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morning milking. Be ...
分类:
其他好文 时间:
2019-04-30 23:28:23
阅读次数:
123