
模拟
真的是沐白
前端开发
展开
-
L1-043. 阅览室
L1-043. 阅览室时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越天梯图书阅览室请你编写一个简单的图书借阅统计程序。当读者借书时,管理员输入书号并按下S键,程序开始计时;当读者还书时,管理员输入书号并按下E键,程序结束计时。书号为不超过1000的正整数。当管理员将0作为书号输入时,表示一天工作结束,你的程序应输出当天的读者借书次数和平均阅读时...原创 2018-03-29 23:58:10 · 134 阅读 · 0 评论 -
D. Colorful Points
D. Colorful Pointstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a set of points on a straight line. Each point has a color assigne...原创 2018-05-06 19:00:36 · 237 阅读 · 0 评论 -
H - Lazier Salesgirl
Kochiya Sanae is a lazy girl who makes and sells bread. She is an expert at bread making and selling. She can sell the i-th customer a piece of bread for price pi. But she is so lazy that she will fal...原创 2018-04-27 08:48:37 · 288 阅读 · 0 评论 -
B - Unrequited Love ZOJ - 3601
Unrequited Love ZOJ - 3601 这是一道模拟题,思路很重要,直接按照题意写的话,可能会很麻烦,出错了很难差bug , 我们可以明确的是一个paty顶多只有一个人是queen或者是King,那么我们首先把参加paty的人先遍历一遍,找到最可能为 King或者是queen的人,然后只需要一次遍历就可以判断是否存在以及如果存在他又是谁#include<bi...原创 2018-04-26 23:27:56 · 197 阅读 · 0 评论 -
A - Applications ZOJ - 3705
Recently, the ACM/ICPC team of Marjar University decided to choose some new members from freshmen to take part in the ACM/ICPC competitions of the next season. As a traditional elite university in ACM...原创 2018-04-14 10:08:08 · 254 阅读 · 0 评论 -
折线中点
给定平面上N个点P1, P2, ... PN,将他们按顺序连起来,形成一条折线。 请你求出这条折线的中点坐标。Input第一行包含一个整数N。 (2 <= N <= 100) 以下N行每行包含两个整数Xi, Yi代表Pi的坐标。(0 <= Xi, Yi <= 10000)Output输出折线段的中点坐标。坐标保留一位小数。Sample Input3 0 0 3...原创 2018-04-07 00:29:03 · 1777 阅读 · 2 评论 -
B. Petya and Exam
B. Petya and Examtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIt's hard times now. Today Petya needs to score 100 points on Informatics exam. T...原创 2018-04-22 20:36:38 · 230 阅读 · 0 评论 -
L2-022. 重排链表
L2-022. 重排链表时间限制500 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越给定一个单链表 L1→L2→...→Ln-1→Ln,请编写程序将链表重新排列为 Ln→L1→Ln-1→L2→...。例如:给定L为1→2→3→4→5→6,则输出应该为6→1→5→2→4→3。输入格式:每个输入包含1个测试用例。每个测试用例第1行给出第1个结点的地址和结点总个数...原创 2018-03-29 10:06:21 · 193 阅读 · 0 评论 -
相似颜色
E - 相似颜色 HihoCoder - 1700 在CSS中我们可以用井号(#)加6位十六进制数表示一种颜色,例如#000000是黑色,#ff0000是红色,#ffd700是金色。 同时也可以将六位颜色#RRGGBB简写为#RGB三位颜色。例如#000与#000000是相同的,#f00与#ff0000是相同的,#639与#663399是相同的。 对于两个颜色#abcdef和#ghijkl,我...原创 2018-04-07 16:28:01 · 387 阅读 · 0 评论 -
L1-046. 整除光棍
L1-046. 整除光棍时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者翁恺这里所谓的“光棍”,并不是指单身汪啦~ 说的是全部由1组成的数字,比如1、11、111、1111等。传说任何一个光棍都能被一个不以5结尾的奇数整除。比如,111111就可以被13整除。 现在,你的程序要读入一个整数x,这个整数一定是奇数并且不以5结尾。然后,经过计算,输出两个...原创 2018-03-30 11:11:58 · 131 阅读 · 0 评论 -
67. Add Binary
Given two binary strings, return their sum (also a binary string).The input strings are both non-empty and contains only characters 1 or 0.Example 1:Input: a = "11", b = "1"Output: "100"Exam...原创 2019-02-19 11:38:48 · 133 阅读 · 0 评论