码迷,mamicode.com
首页 >  
搜索关键字:christmas game    ( 5650个结果
[UVA532] Dungeon Master 题解
Description You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be fille ...
分类:其他好文   时间:2020-05-18 20:55:26    阅读次数:60
【构造】D - Game With Array
"D Game With Array" 题意:构造一个长度为$N$,和为$S$的正整数序列,问能不能找到一个1~S的数$K$,使得数组里找不出一个子序列的和为$K$或者$S K$ 思路:构造一个前$N 1$项均为1,第$N$项为$S (N 1)$的数组即可。此时只要$S (N 1) N$,取$K=N ...
分类:其他好文   时间:2020-05-18 09:15:18    阅读次数:81
2.23骰子游戏
#写一个骰子游戏 import random class Game: def __init__(self,player1,player2): self.player1 = player1 self.player2 = player2 def star_game(self): self.player1 ...
分类:其他好文   时间:2020-05-17 22:01:42    阅读次数:87
D. Game With Array
Petya and Vasya are competing with each other in a new interesting game as they always do. At the beginning of the game Petya has to come up with an a ...
分类:其他好文   时间:2020-05-17 13:32:47    阅读次数:135
Codeforces Round #643 (Div. 2) 题解 (ABCD)(佛系更新中)
[TOC] https://codeforces.com/contest/1355 打一半和室友开黑去了哈哈哈哈哈哈反正不计分(不要学我) A. Sequence with Digits 这题我会证!首先对于百位来说,不可能从x跳到x+2,只能从x变成x+1或者不变(因为最大变化量为 $9\time ...
分类:其他好文   时间:2020-05-17 00:59:41    阅读次数:90
Codeforces Round #643 (Div. 2) D. Game With Array(构造)
Petya and Vasya are competing with each other in a new interesting game as they always do. At the beginning of the game Petya has to come up with an a ...
分类:其他好文   时间:2020-05-16 23:37:41    阅读次数:129
实验四 代码评审
实验四 代码评审 一、实验目的 1) 了解代码审查的含义; 2) 掌握相关编程规范检查工具的安装与使用; 二、实验内容及要求 Code Review中文应该译作“代码审查”或是“代码评审”或“代码复查”,是指通过阅读代码来检查源代码与编码标准的符合性以及代码质量的活动。Code Review主要用来 ...
分类:其他好文   时间:2020-05-16 20:54:24    阅读次数:69
presentation: The Great Gatsby Chapter 6
good morning. Since we have been through the main idea, now i am going to talk about the aesthetics behind the story. well Actually i am not sure if i ...
分类:其他好文   时间:2020-05-15 13:40:40    阅读次数:91
[20-05-14][Thinking in Java 15]Java Interfaces 4 - Factories 2
1 package test_12_2; 2 3 public interface Game { 4 5 boolean move(); 6 } 1 package test_12_2; 2 3 public interface GameFactory { 4 5 Game getGame(); 6 ...
分类:编程语言   时间:2020-05-15 00:34:12    阅读次数:74
并不对劲的CF1349B&C:Game of Median Life
CF1349B Orac and Medians 题目描述 有$n$个数,$a_1,a_2,...,a_n$。 该题中$m$个数的中位数的定义是:将这$m$个数排序后,排在第$\lfloor \frac{m+1}{2}\rfloor$的数。 可以进行的操作是:选一个区间$[l,r]$,将$a_l,a ...
分类:其他好文   时间:2020-05-13 23:43:33    阅读次数:123
5650条   上一页 1 ... 14 15 16 17 18 ... 565 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!