经典sudoku问题 按部就班就好 一定要注意细节 大于1还是大于等于1 r c越界判断 judge时0的特判 blabla居然磨了2个小时 改了很多地方所以实现得有点冗余,反正能A吧 ...
分类:
其他好文 时间:
2018-02-12 11:17:30
阅读次数:
123
Solution to the n Queens Puzzle Time Limit: 1000MS Memory Limit: 131072K Total Submissions: 3872 Accepted: 1419 Special Judge Description The eight qu ...
分类:
其他好文 时间:
2018-02-05 20:07:15
阅读次数:
129
Hangman Judge Hangman Judge是一个猜英文单字的小游戏(在电子字典中常会看到),游戏规则如下:1、答案单字写在纸上(每个字元一张纸),并且被盖起来,玩家每次猜一个英文字元(letter)。2、如果这个英文字元猜中(在答案的英文单字中有出现),被猜中的字元就被翻开。例如:答案是 ...
分类:
其他好文 时间:
2018-02-03 22:02:06
阅读次数:
239
The Pilots Brothers' refrigerator Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 27893 Accepted: 10802 Special Judge Description The game ...
分类:
其他好文 时间:
2018-02-02 16:09:16
阅读次数:
188
The ranklist of PAT is generated from the status list, which shows the scores of the submittions. This time you are supposed to generate the ranklist ...
分类:
其他好文 时间:
2018-02-01 19:24:27
阅读次数:
149
You have 4 cards each containing a number from 1 to 9. You need to judge whether they could operated through *, /, +, -, (, )to get the value of 24. E ...
分类:
其他好文 时间:
2018-02-01 00:08:35
阅读次数:
184
Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Example 2: Note: ...
分类:
其他好文 时间:
2018-01-28 11:18:06
阅读次数:
131
最近打算将之前学习过的小练习分享出来,算是巩固知识。虽然是小练习,但是越看越觉得有趣,温故而知新。 练习:功能跳水比赛,8个评委评分。运动员成绩去掉最高和最低之后的平均分 代码实例: 1.导包 2.测试类 3.Judge类(封装方法,很好的面向对象编程) 另外,最近觉得泛型真的是一个很神奇的存在。设 ...
分类:
编程语言 时间:
2018-01-27 22:20:57
阅读次数:
187
//3-1猜拳游戏, 其一 #include #include #include int main(){ int human; int comp; int judge; int retry; srand(time(NULL)); printf("猜拳游戏开始!!\n"); do{ comp = ra... ...
分类:
其他好文 时间:
2018-01-25 21:53:46
阅读次数:
197
一、题目概述 Ignatius is building an Online Judge, now he has worked out all the problems except the Judge System. The system has to read data from correct ...
分类:
其他好文 时间:
2018-01-24 22:25:36
阅读次数:
235