
模拟
neuike
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【模拟+思维】hdu5200 Trees
http://acm.hdu.edu.cn/showproblem.php?pid=5200 Trees Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1285 Accepted Submission(s): 400原创 2015-12-20 17:32:15 · 633 阅读 · 0 评论 -
hdu3029
Scales Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 512 Accepted Submission(s): 230 Problem Description Give you a scale, a g原创 2016-07-10 19:52:34 · 480 阅读 · 0 评论 -
Codeforces Beta Round #94 (Div. 1 Only)String
B. String time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output One day in the IT lesson Anna and Maria learned about the lexicographic order.St原创 2016-07-22 14:11:37 · 343 阅读 · 0 评论 -
Backward Digit Sums POJ3187
Backward Digit Sums Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 6223 Accepted: 3602 DescriptionFJ and his cows enjoy playing a mental game. They write down the numbers from 1原创 2016-07-25 10:32:11 · 459 阅读 · 0 评论 -
uva10881
本题目是蚂蚁的相遇问题,蚂蚁相遇以后就反向,输出蚂蚁t秒后的次序。 这里用ne数组存下新状态的一切信息。注意交换的次序即可。 因为所有蚂蚁的相对位置不变,所以当前的相对位置也不变。 num存着所有的新位置的相对次序,即当前ne[i].loc是第几大的数字呢?num里面将这个次序分别存下来 order[i]里面则表示 大小顺序序号为i的数据将在第order[i]个输出 之后ne数组又依照数原创 2016-06-17 01:04:50 · 326 阅读 · 0 评论 -
Tower of Hanoi CodeForces 392B
B. Tower of Hanoi time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output The Tower of Hanoi is a well-known mathematical puzzle. It consists of th原创 2016-07-20 11:11:22 · 325 阅读 · 0 评论 -
Humidexpoj3299
模拟。 注意输入为很多种情况,TD,TH,DH#include<cstdio> #include<cmath> #include<algorithm> #include<cstring> using namespace std;char s1[100],s2[100]; double t,d,h; double a1,a2; double E=2.718281828; int vis[300];v原创 2016-12-02 18:46:52 · 331 阅读 · 0 评论 -
poj3094
模拟#include<cstdio> #include<cmath> #include<algorithm> #include<cstring> using namespace std; char ss[10000];int main() { while(gets(ss)) { if(ss[0]=='#') break; int原创 2016-12-02 19:01:23 · 246 阅读 · 0 评论 -
poj2196
利用海伦公式由海伦公式得出面积 s=sqrt(p*(p-a)(p-b)(p-c)) p=(a+b+c)/2;由三角形面积公式S=1/2*a*b*sin(C) 和正弦定理a/sin(A)=b/sin(B)=c/sin(C)=d=2*r 得d=a*b*c/2/S; (a,b,c为三边长)周长为d*PI#include<cstdio> #include<cmath> #include<al原创 2016-12-02 19:30:06 · 313 阅读 · 0 评论 -
poj1338
模拟。 注意模拟的方法,记录235分别上一次乘的数字。直接暴力会超时。#include<cstdio> #include<cmath> #include<algorithm> #include<cstring> using namespace std; int a[2000]; int n;bool ok(int x) { int flag=1; while(flag) {原创 2016-12-02 19:59:57 · 286 阅读 · 0 评论 -
zoj1105
FatMouse's Tour Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Submit Status Practice ZOJ 1105 Appoint description: System Crawler (2016-04-21) Descripti原创 2016-04-22 17:41:53 · 376 阅读 · 0 评论 -
zoj1099 HTML
HTML Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Submit Status Practice ZOJ 1099 Description If you ever tried to read a html document on a Macinto原创 2016-04-22 09:53:57 · 484 阅读 · 0 评论 -
zoj1086
Octal Fractions Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Submit Status Practice ZOJ 1086 Description Fractions in octal (base 8) notation can be原创 2016-04-21 23:50:41 · 513 阅读 · 0 评论 -
cf Educational Codeforces Round 6 C Pearls in a Row
C. Pearls in a Row time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output There are n pearls in a row. Let's enume原创 2016-01-22 13:16:05 · 480 阅读 · 0 评论 -
poj 2785
4 Values whose Sum is 0 Time Limit: 15000MS Memory Limit: 228000K Total Submissions: 18686 Accepted: 5546 Case Time Limit: 5000MS Description The SUM problem can原创 2016-01-23 17:04:00 · 252 阅读 · 0 评论 -
Ivan and Powers of Two
Ivan and Powers of Two Time Limit:500MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Description Ivan has got an array of n non-negative integers a1, a2, ...原创 2016-03-30 20:32:12 · 399 阅读 · 0 评论 -
OpenJ_Bailian - 3421
Encoding Time Limit: 1000MS Memory Limit: 65536KB 64bit IO Format: %I64d & %I64u Submit Status Description Chip and Dale have devised an encryption method to hide their (writ原创 2016-04-05 21:48:45 · 834 阅读 · 0 评论 -
zoj1115 Digital Roots
Digital Roots Time Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Submit Status Practice ZOJ 1115 Appoint description: System Crawler (2016-04-26) Description原创 2016-04-26 21:49:00 · 293 阅读 · 0 评论 -
ZOJ_1122
ZOJ_1122: Clock Time Limit: 2000 MS Memory Limit: 64 MB 64bit IO Format: %lld Submitted: 1 Accepted: 1 [Submit][Status][Web Board] Description You are given a standard 12-hour clock wi原创 2016-04-26 22:19:21 · 285 阅读 · 0 评论 -
ZOJ_1003
ZOJ_1003: Crashing Balloon Time Limit: 2000 MS Memory Limit: 64 MB 64bit IO Format: %lld [Submit][Status][Web Board] Description On every June 1st, the Children's Day, there will be a原创 2016-04-27 11:21:00 · 248 阅读 · 0 评论 -
ZOJ_1009
ZOJ_1009: Enigma Time Limit: 10000 MS Memory Limit: 32 MB 64bit IO Format: %lld [Submit][Status][Web Board] Description In World War II, Germany once used an electronic encryption mach原创 2016-04-30 12:10:05 · 326 阅读 · 0 评论 -
ZOJ_1016
ZOJ_1016: Parencodings Time Limit: 2000 MS Memory Limit: 64 MB 64bit IO Format: %lld Submitted: 0 Accepted: 0 [Submit][Status][Web Board] Description Let S = s1 s2 ... s2n be a well-fo原创 2016-04-30 15:25:07 · 274 阅读 · 0 评论 -
L1-043. 阅览室
题目有坑,如果出现了两次借同一本书的操作,那么以后借的一次为开始时间。代码:#include<cstdio> #include<cstring> #include<cmath> int sta[1007]; int n; char s[10]; int time[1007]; using namespace std; int coun,ave; int ca...原创 2018-03-26 20:45:23 · 246 阅读 · 1 评论