摘要:
最多数99999只羊,数多了电脑也累 1 import java.util.HashMap; 2 import java.util.Map; 3 4 public class CountingSheep { 5 6 private static String[] units = {"","十","百 阅读全文
摘要:
简单的贪心法,代码如下 1 #include <iostream> 2 #include<stdio.h> 3 double amount[1000]; 4 double price[1000]; 5 using namespace std; 6 int getMax(int n){ 7 int r 阅读全文
摘要:
从mooc网站哔哩哔哩上学到的:视频BV号为BV16W41127aQ和BV1hW411y79J,up:红点工厂 HTML <div class="lunboContainer"> <div class="lunboLeft"><!--轮播图向左移动--> <img src="选择您的路径/icon- 阅读全文
摘要:
java.lang.NoSuchMethodException: servlet.StuLoginServlet.<init>(),在网上了解到,这句话的意思是缺少某个无参构造函数解决方法:查看Servlet本身和它用到的类是否有无参构造函数,无参构造函数是否是public,我的错误:eclipse 阅读全文
摘要:
1 #include<stdio.h> 2 #include<iostream> 3 #include<string.h> 4 #include<cstring> 5 #include<algorithm> 6 using namespace std; 7 bool cmp(int a,int b) 阅读全文
摘要:
题目 To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - 阅读全文
摘要:
问题描述: 有八个皇后(可以当成八个棋子),如何在 8*8 的棋盘中放置八个皇后,使得任意两个皇后都不在同一条横线、纵线或者斜线上 做法: 从第一行开始,一行一行地考虑,这样起码可以保证皇后不在同一行; 考虑下面的每一行的时候,需要让新增加的棋子不在前面添加的棋子的左下、正下、右下,即新增加的棋子的 阅读全文