
水题
「已注销」
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #668 (Div. 2) A. Permutation Forgery (思维)
题目写的非常复杂,其实把数组倒着输一遍就行了 #include <stdio.h> #include <string.h> #include <iostream> #include <algorithm> #include <vector> #include <queue> #include <stack> #include <set> #include <map> #include <stri原创 2020-10-04 13:02:25 · 200 阅读 · 0 评论 -
Codeforces Round #673 (Div. 2) A. Copy-paste(水题)
水题,没必要看 /* *********************************************** ┆ ┏┓ ┏┓ ┆ ┆┏┛┻━━━┛┻┓ ┆ ┆┃ ┃ ┆ ┆┃ ━ ┃ ┆ ┆┃ ┳┛ ┗┳ ┃ ┆ ┆┃ ┃ ┆ ┆┃ ┻ ┃ ┆ ┆┗━┓ 马 ┏━┛ ┆ ┆ ┃ 勒 ┃ ┆ ┆ ┃ 戈 ┗━━━┓ ┆ ┆ ┃ 壁 ┣┓┆ ┆ ┃ 的草泥马 ┏┛┆ ┆ ┗┓┓┏━┳┓┏┛ ┆ ┆ ┃┫┫ ┃┫┫ ┆ ┆原创 2020-10-04 10:42:48 · 171 阅读 · 0 评论 -
poj3094 Quicksum(大水题)
#include<cstring> #include<cstdio> #include<algorithm> using namespace std; char str[300]; int sum; int main() { while(gets(str), str[0] != '#'){ sum = 0; for(int i=0; i < strlen(str); i++) if(str[i] != ' ') sum += (i + 1) *原创 2020-10-03 21:31:12 · 215 阅读 · 0 评论 -
poj1083Moving Tables(思维,样例具有多重欺骗性)
题目大意:如图所示在一条走廊的两侧各有200个房间,现在给定一些成对的房间相互交换桌子,但是走廊每次只能通过一组搬运, 也就是说如果两个搬运过程有交叉是不能同时搬运的,要依次来,一次搬运10min,问完成所有的搬运的最少用时。 解题思路:考虑每个房间有多少搬运过程需要经过,我们截取最大的房间经过的次数就可以了,挺锻炼思维的一道题。 注意: 这个思路我第一时间就想到了,但在脑海里过了一遍,觉得漏洞颇多,没有采用。其实应当在纸上画一遍,所谓的漏洞并不存在,只是我思维的死角罢了。 此题虽为水题,样例却颇具欺骗性原创 2020-10-03 10:21:28 · 159 阅读 · 0 评论 -
poj2159 Acient Cipher(暴力)
审题出了点问题,思维定式了,每一个字母的密码加减不一定是一样的,题目没说,只不过举例举的这样而已 string的头文件出了点问题,cin>>str要用#include(poj上才能过),而memset却要用#include<string.h>(电脑上才能过) #include<iostream> #include<cstdio> #include<string> #include<string.h> #include<algor原创 2020-10-01 21:25:14 · 141 阅读 · 0 评论 -
poj3299 Humidex(公式直接算)
水题 有一丢丢技巧的输入,再带上三个个公式的计算 代码思路和格式蛮漂亮的,可以借鉴 #include<iostream> #include<cmath> #define exp 2.718281828 using namespace std; double geth(double t,double d){ double h,e; e=6.11*pow(exp,5417.7530*((1/273.16)-(1/(d+273.16)))); h=0.5555*(e-10); r原创 2020-10-01 08:16:14 · 384 阅读 · 0 评论