#写一个骰子游戏 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
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
[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
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
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
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 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
第一个爬虫与测试 (1)完善球赛程序 代码: 1 import unittest 2 from game import Game 3 class GameTest(unittest.TestCase): 4 def test_gameOver(self): 5 self = Game('15','1 ...
分类:
其他好文 时间:
2020-05-13 20:01:39
阅读次数:
81
import random from math import *def printIntro():#打印程序的介绍性信息print("模拟乒乓球竞赛")print("学号23")print("程序运行需要A和B的能力值(以0到1之间的小数表示)") def getInputs():#获得用户输入的参 ...
分类:
其他好文 时间:
2020-05-13 17:11:31
阅读次数:
81