其他---------模拟
Whowell
欢迎自荐或推荐实习/校招(字节)!
加油,加油,朝着自己的梦想!!!!!
展开
-
Xiangqi UVA - 1589
题目链接:Xiangqi UVA - 1589 题目:考虑一个象棋残局,其中红方有n(2<=n<=7)n(2<=n<=7)n(2原创 2018-02-08 12:37:08 · 272 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第二场)I car [思维题]
I car题意:一个n*n的方格,在边缘放置car,car 只能以相同的速度从一边走到一边,不能相撞,并且不能走有障碍物的一行题解:脑补一下,就是题解中的,如果n是偶数,那么就是保证每行每列只有一个就是2*n,如果是奇数,那么就是需要注意中间那个一行一列只能放一个,否则会相撞,...原创 2018-08-24 23:22:18 · 169 阅读 · 0 评论 -
2018中国大学生程序设计竞赛 – 网络选拔赛 1001 Buy and Resell [模拟]
1001 Buy and Resell 题目:有1-n个货物,可以在某个点buy,然后在后面的点resell,可以同时买多个,问最大的利润和最小的交易次数。题解:模拟运算,前 i 天都是可以买的,加入待卖序列(x, 0),对于第 i 天如果最小的待卖的价格比a[i]小,那么说明可以卖,然后将(a...原创 2018-08-26 10:55:51 · 311 阅读 · 0 评论 -
2018 Multi-University Training Contest 3 Problem L. Visual Cube
Problem L. Visual Cube 简单的模拟题,输出一个如图的cube;代码:#include <cstdio>int main(){ int n, a, b, c, mx, my, i, j; char x[100][100]; scanf("%d...原创 2018-07-31 00:33:55 · 151 阅读 · 0 评论 -
牛客网暑期ACM多校训练营(第一场)D Two Graphs [模拟]
题目:要求计算与A同构的B的子图的个数;思路:将A图全排列映射到B图中,判断是否同构,每个B与A同构的子图,都计算了A的“自同构”次,去重得到答案;解释一下为什么会多算看下面这张图: 考虑G1边互换两个节点,也可以构成同构,在G2中每一种方案也可以通过互换顺序,得到另一种同构,但其本质是相同的,所以找出G1中自同构的数量,每个满足题意的方案被计算了“自同构”次,...原创 2018-07-24 20:48:47 · 174 阅读 · 0 评论 -
Circular Sequence UVA - 1584
题目大意: 给定一个含有n个字母的环状字符串,可从任意位置开始按顺时针读取n个字母,输出其中字典序最小的结果。 解题思路:我直接模拟。。。。 题目链接:Circular Sequence UVA - 1584ac代码:#include#include#include#include#include#include#include#include#inc原创 2018-02-03 20:18:15 · 201 阅读 · 0 评论 -
Wannafly挑战赛15 B 车辆安排 [模拟]
题目描述 有n个队伍,每个队伍的人数小于等于5,每辆车最多坐5个人,要求一个队伍的人都在一辆车上,求最少的车数输入描述:第一行n第二行n个数,表示每个队伍的人数输出描述:输出最少车数示例1输入33 4 5输出3备注:n≤1e5每个数小于等于5题目就是模拟,我也不知道我菜成酱紫!!!代码:#include<bits/stdc++.h>using namespace std;c...原创 2018-05-12 18:00:14 · 107 阅读 · 0 评论 -
codeforces 962 B. Students in Railway Carriage
B. Students in Railway Carriagetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are nn consecutive seat places in a railway carriage. Each pl...原创 2018-04-25 22:20:47 · 155 阅读 · 0 评论 -
Chef and Big Soccer
Chef and Big Soccer All submissions for this problem are available.Read problems statements in Mandarin Chinese, Russian and Vietnamese as well.Chef is a big fan of soccer! He loves soccer so much, th...原创 2018-04-12 17:04:58 · 205 阅读 · 0 评论 -
CodeForces - 808A. Lucky Year
CodeForces - 808A A. Lucky Yeartime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputApart from having lots of holidays throughout the year, residents of...原创 2018-04-05 14:33:11 · 155 阅读 · 0 评论 -
L2-020. 功夫传人
L2-020. 功夫传人简单模拟#include<bits/stdc++.h>using namespace std;const int maxn = 1e5 + 7;double val[maxn];vector<int> child[maxn];int n;double z, r, sum = 0;void dfs(int x, double w) ...原创 2018-03-27 13:57:50 · 195 阅读 · 0 评论 -
L2-002. 链表去重
L2-002. 链表去重有是一道模拟!!!!#include<bits/stdc++.h>#include<cstdlib>#define ll long longusing namespace std;const int maxn = 1e5+7;typedef struct nod{ int s1; int c; int nexts;...原创 2018-03-23 20:27:54 · 162 阅读 · 0 评论 -
L2-022. 重排链表
L2-022. 重排链表原来是这么个坑,有无效结点!!!!不说了小模拟。。。。。#include<bits/stdc++.h>#include<cstdlib>#define ll long longusing namespace std;const int maxn = 1e5+7;typedef struct nod{ int s1; int...原创 2018-03-23 19:43:45 · 175 阅读 · 0 评论