• UVaLive 7371 Triangle (水题,判矩形)

    时间:2024-01-11 16:04:01

    题意:给定两个三角形,问你能不能拼成矩形。析:很明显,要想是矩形,必须是四个角是直角,那么三角形必须是直角三角形,然后就是只能斜边相对,然后呢?就没了。代码如下:#pragma comment(linker, "/STACK:1024000000,1024000000")#include <c...

  • CodeForces 706A Beru-taxi (数学计算,水题)

    时间:2024-01-10 07:55:03

    题意:给定一个固定位置,和 n 个点及移动速度,问你这些点最快到固定点的时间。析:一个一个的算距离,然后算时间。代码如下:#pragma comment(linker, "/STACK:1024000000,1024000000")#include <cstdio>#include &l...

  • Codeforces Round #318 [RussianCodeCup Thanks-Round] (Div. 1) B. Bear and Blocks 水题

    时间:2024-01-09 16:20:50

    B. Bear and BlocksTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/contest/573/problem/BDescriptionLimak is a little bear who loves to ...

  • 递推水题 Codeforces Round #289 (Div. 2, ACM ICPC Rules) A. Maximum in Table

    时间:2024-01-06 11:54:20

    题目传送门 /* 模拟递推水题 */ #include <cstdio> #include <iostream> #include <cmath> #include <algorithm> #include <cstring> #i...

  • codeforces水题100道 第十八题 Codeforces Round #289 (Div. 2, ACM ICPC Rules) A. Maximum in Table (brute force)

    时间:2024-01-06 11:49:46

    题目链接:http://www.codeforces.com/problemset/problem/509/A题意:f[i][1]=f[1][i]=1,f[i][j]=f[i-1][j]+f[i][j-1],求f[n][n]。C++代码:#include <iostream>using ...

  • hdu 4493 Tutor 水题

    时间:2024-01-04 20:31:29

    TutorTime Limit: 20 Sec  Memory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=4493DescriptionLilin was a student of Tonghua Normal Univer...

  • HDU-4414 Finding crosses 水题

    时间:2024-01-02 11:22:15

    题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4414直接暴力判断即可。 //STATUS:C++_AC_15MS_232KB #include <functional> #include <algorithm> #includ...

  • VK Cup 2016 - Qualification Round 1 (Russian-Speaking Only, for VK Cup teams) C. Promocodes with Mistakes 水题

    时间:2024-01-01 22:51:24

    C. Promocodes with Mistakes题目连接:http://www.codeforces.com/contest/637/problem/CDescriptionDuring a New Year special offer the "Sudislavl Bars" offered...

  • VK Cup 2016 - Qualification Round 2 A. Home Numbers 水题

    时间:2024-01-01 22:40:51

    A. Home Numbers题目连接:http://www.codeforces.com/contest/638/problem/ADescriptionThe main street of Berland is a straight line with n houses built along ...

  • hdu-5703 Desert(水题)

    时间:2024-01-01 08:31:22

    题目链接:DesertTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65535/32768 K (Java/Others)Problem DescriptionA tourist gets lost in the desert wit...

  • bzoj usaco 金组水题题解(2.5)

    时间:2023-12-31 19:27:17

    bzoj 2197: [Usaco2011 Mar]Tree Decoration树形dp。。f[i]表示处理完以i为根的子树的最小时间。因为一个点上可以挂无数个,所以在点i上挂东西的单位花费就是i所在子树里的最小单位花费。。所以每次求f[i]只要使子树里的数量都满足要求就好了。。i的祖先还要更多的...

  • bzoj usaco 金组水题题解(1)

    时间:2023-12-31 19:17:47

    UPD:我真不是想骗访问量TAT。。一开始没注意总长度写着写着网页崩了王仓(其实中午的时候就时常开始卡了= =)。。。。损失了2h(幸好长一点的都单独开了一篇)。。。。吓得赶紧分成两坨。。。。TAT。。。。。。。。。。。。。。—————————————————————————————————————...

  • Nyoj 网络的可靠性(水题)

    时间:2023-12-30 16:09:07

    描述A公司是全球依靠的互联网解决方案提供商,也是2010年世博会的高级赞助商。它将提供先进的网络协作技术,展示其”智能+互联“的生活概念,同时为参观者提供高品质的个人体验和互动,以”信息通信,尽情城市梦想”为主题贯穿。借助奇幻的剧场大屏幕和特效,展现信息通信技术的应用前景,通过生动形象的故事,向观众...

  • UVa 1585 Score --- 水题

    时间:2023-12-30 14:44:16

    题目大意:给出一个由O和X组成的串(长度为1-80),统计得分。每个O的分数为目前连续出现的O的个数,例如,OOXXOXXOOO的得分为1+2+0+0+1+0+0+1+2+3解题思路:用一个变量term记录当前O的分数,若出现O,则term+1,若出现X,则term=0;再用一个sum记录总和,没次...

  • Codeforces Round #326 (Div. 2) A. Duff and Meat 水题

    时间:2023-12-23 19:28:50

    A. Duff and MeatTime Limit: 1 SecMemory Limit: 256 MB题目连接http://codeforces.com/contest/588/problem/ADescriptionDuff is addicted to meat! Malek wants t...

  • 装箱问题(NOIP2001&水题测试2017082401)

    时间:2023-12-23 11:16:43

    题目链接:装箱问题 这题经典的01背包。 动规。 设计状态f[n][V]表示前n个物体放在V中的最大体积是多少。 所以代码如下:#include<bits/stdc++.h>using namespace std;int f[35][20003];int dp(int* v,int V,...

  • UVaLive 6608 Cabin Baggage (水题)

    时间:2023-12-22 17:52:31

    题意:给定四个数代表长宽高和重,问你是不是满足下面条件,长不高于56,宽不宽于45,高不高于25,或者总和不大于125,并且重量不高于7.析:判断输出就好,注意这个题是或,不要想错了。代码如下:#pragma comment(linker, "/STACK:1024000000,1024000000...

  • Educational Codeforces Round 13 C. Joty and Chocolate 水题

    时间:2023-12-19 09:50:56

    C. Joty and Chocolate题目连接:http://www.codeforces.com/contest/678/problem/CDescriptionLittle Joty has got a task to do. She has a line of n tiles indexe...

  • Codeforces Round #352 (Div. 2) A. Summer Camp 水题

    时间:2023-12-17 21:25:32

    A. Summer Camp题目连接:http://www.codeforces.com/contest/672/problem/ADescriptionEvery year, hundreds of people come to summer camps, they learn new algor...

  • BZOJ 2761: [JLOI2011]不重复数字 水题

    时间:2023-12-17 18:46:45

    2761: [JLOI2011]不重复数字Time Limit: 10 Sec  Memory Limit: 162 MBSubmit: 2100  Solved: 809题目连接http://www.lydsy.com/JudgeOnline/problem.php?id=2761Descript...