码迷,mamicode.com
首页 >  
搜索关键字:uva 10200 prime tim    ( 11153个结果
计划,,留
下面给出的题目共计560道,去掉重复的也有近500题,作为ACMer Training Step1,用1年到1年半年时间完成。打牢基础,厚积薄发。一、UVaOJhttp://uva.onlinejudge.org西班牙Valladolid大学的程序在线评测系统,是历史最悠久、最著名的OJ。一、《算法...
分类:其他好文   时间:2014-04-29 19:14:43    阅读次数:670
hud 1397
没说的 暴力打表#include#includeusing namespace std;int a[62768];int b[42768];int prime[42768];int main(){ int n=0,j,i; memset(b,0,sizeof(b)); memset...
分类:其他好文   时间:2014-04-29 18:24:19    阅读次数:435
[UVA] 10167 - Birthday Cake
Problem G. Birthday CakeBackgroundLucy and Lily are twins. Today is their birthday. Mother buys a birthday cake for them.Now we put the cake onto a De...
分类:其他好文   时间:2014-04-28 15:37:11    阅读次数:391
小组会议-2014-04-27
项目名称:Floaty Fish成员:张永、董芳健、吴盈盈、王丹、周其范会议时间:20:00-20:30会议地点:学院楼成员 donedoing遇到的问题张永无董芳健发布昨天的回忆博客20:00-20:30 记录会议内容,并发布博客无王丹完成了部分背景音乐的代码融合正在做音效代码的改良,通过tim....
分类:其他好文   时间:2014-04-28 14:06:45    阅读次数:516
UVA 11795
BMega Man’s MissionsInputStandard InputOutputStandard OutputMega Man is off to save the world again. His objective is to kill the Robots created by Dr...
分类:其他好文   时间:2014-04-28 00:38:46    阅读次数:483
Rhythmk 一步一步学 JAVA (21) JAVA 多线程
1、JAVA多线程简单示例 1.1 、Thread 集成接口Runnable 1.2 、线程状态,可以通过 Thread.getState()获取线程状态: New (新创建) Runnable (可以运行) Blocked (被阻塞) Waiting (等待) Tim...
分类:编程语言   时间:2014-04-27 21:22:25    阅读次数:813
UVA 10995 - Educational Journey(数论)
题意:10995 - Educational Journey 题意:给定A遇到C,M,D的时刻和D遇到C,M的时刻,求C遇到M的时刻 思路:先把时间都处理成秒,然后从A遇到C后,从该点出发,A遇到D和C遇到D,就能求出速度Va和Vc之间的关系,由A遇到M后,从该点出发,A遇到D和M遇到D可以推出Va和Vm的关系,从而推出Vc和Vm的关系,然后由C和M遇到点出发,C遇到D和M遇到D的时间可以算,...
分类:其他好文   时间:2014-04-27 19:23:24    阅读次数:502
UVA 10693 10693 - Traffic Volume(数论)
题目链接:10693 - Traffic Volume 根据物理知识, 车经过的时间等于,距离/速度,所以可以列出公式t = (l + d)/v,v/2f + d/v,只有当v / 2f = d/v时,时间最小,v = sqrt(2df),之后时间也能算了。 #include #include #include double l, f; int main() { while (~s...
分类:其他好文   时间:2014-04-27 18:11:33    阅读次数:749
UVA 10773 Back to Intermediate Math(数论)
题目链接:Back to Intermediate Math 题意:两种过河方式,一种笔直过河,一种最快过河,求两种时间差 只要计算出两种时间,笔直过河的速度等于两个速度分量的合速度,最快就等于船速度,求出差即可。 代码: #include #include #include int t, d, v, u; int main() { int cas = 0; scanf(...
分类:其他好文   时间:2014-04-27 17:44:30    阅读次数:489
UVA 11314 - Hardly Hard(数论)
题目链接:11314 - Hardly Hard 题意:给定A,B两点,求Y轴上一点C和X轴上一点D,使得该四边形周长最小。 思路:B以Y轴做对称点,A以X轴做对称点,然后两点相连就是其他三边的周长,因为两点间线段最短,然后再加上AB长度即可 代码: #include #include #include int t; struct Point { double x, y; Po...
分类:其他好文   时间:2014-04-27 17:40:22    阅读次数:555
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!