自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(25)
  • 收藏
  • 关注

原创 逻辑学导论第11版练习题

在某监狱中有三个囚犯,第一个囚犯视力正常,第二个囚犯只有一只眼,第三个囚犯是个完全的盲人。接着看守对一只眼的囚犯也给出了同样的允诺,第二个囚犯也说不出他所戴帽子的颜色。看守没有对盲人囚犯做出给予自由的承诺,但当盲人囚犯提出这样的请求时,看守予以同意。第二人知自己与第三人两人中至少有—人戴白帽,如果第三人戴红帽,他立知自己戴白帽。假设①:能够识别的情况:一共有三顶白帽子,二顶红帽子,所以视力正常和一只眼睛的囚犯只有看到其余两个囚犯戴的都是红帽子时,才能判断出自己戴的帽子的颜色。从我有视觉的朋友的回答中,

2023-04-21 16:47:10 300

原创 Win10 恢复分区 扩展卷

删除恢复分区目标 : 给C盘扩容问题 : 恢复分区在C盘后面,无法给C盘扩容解决办法 : 方法1 重装系统 ; 方法2 删除恢复分区官方和网友都是不建议删除恢复分区的,但是我也不想重装系统,还是选择第二个方法。。。使用DiskGenius工具删除当前分区然后电脑出现蓝屏,然后我关机,开机。此电脑–>管理–>磁盘管理:扩展C暂时没有发现什么大问题。...

2020-03-31 14:41:39 2932 1

原创 SQLite学习

创建数据库添加数据修改数据删除数据查询数据创建一个名为BookStore.db的数据库package com.example.sqlite;import android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteOpen...

2020-03-18 16:52:57 125

原创 移动应用开发 SharedPreferences

SharedPreferences存储<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation...

2020-03-15 22:01:35 155

原创 移动应用开发 文件存储

文件存储android.content.Contex类的openFileOutput方法MODE_PRIVATE指定同文件名的时候,所写入的内容将会覆盖原文件中的内容package com.example.filepersistenttest;import androidx.appcompat.app.AppCompatActivity;import android.content....

2020-03-15 21:17:00 316

原创 Android编程权威指南第2版 第5章

activity间的数据传递string.xml<resources> <string name="app_name">GeoQuiz</string> <string name="true_button">TRUE</string> <string name="false_button">FAL...

2020-03-08 17:29:49 188

原创 Android编程权威指南第2版 第3章

Activity的生命周期增加水平模式布局<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <TextView...

2020-03-08 15:51:22 113

原创 Android编程权威指南第2版 挑战练习2.9

添加后退按钮package com.example.geoquizchallenge2;public class Question { private int mTextResId; private boolean mAnswerTrue; public Question(int textResId, boolean answerTrue) { mT...

2020-03-07 22:09:41 240 1

原创 Android编程权威指南第2版 第2章

Android与MVC设计模式模型package com.example.geoquiz;public class Question { private int mTextResId; private boolean mAnswerTrue; public Question(int textResId, boolean answerTrue) { ...

2020-03-07 22:02:27 168 1

转载 poj 1013 Counterfeit Dollar

DescriptionSally Jones has a dozen Voyageur silver dollars. However, only eleven of the coins are true silver dollars; one coin is counterfeit even though its color and size make it indistinguishable...

2019-09-04 11:03:44 73

转载 POJ 1012 Joseph

DescriptionThe Joseph’s problem is notoriously known. For those who are not familiar with the original problem: from among n people, numbered 1, 2, . . ., n, standing in circle every mth is going to ...

2019-09-02 17:17:28 93

转载 poj 1011 Sticks

DescriptionGeorge took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the original state, but he forgot how many sticks...

2019-09-01 20:24:03 59

原创 poj 1009

题目都看不懂,以后再回来。

2019-08-15 17:09:57 93

转载 poj 1008 Maya Calendar

DescriptionDuring his last sabbatical, professor M. A. Ya made a surprising discovery about the old Maya calendar. From an old knotted message, professor discovered that the Maya civilization used a ...

2019-08-15 11:40:26 93

转载 poj 1007 DNA Sorting

DescriptionOne measure of unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequenceDAABEC’’, this measure i...

2019-08-15 10:10:09 91

转载 poj 1006 Biorhythms

DescriptionSome people believe that there are three cycles in a person’s life that start the day he or she is born. These three cycles are the physical, emotional, and intellectual cycles, and they h...

2019-08-06 18:22:00 144

转载 poj 1005 I Think I Need a Houseboat

DescriptionFred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Louisiana is actually shrinking b...

2019-08-06 17:45:33 110

转载 poj 1004 Financial Management

DescriptionLarry graduated this year and finally has a job. He’s making a lot of money, but somehow never seems to have enough. Larry has decided that he needs to grab hold of his financial portfolio...

2019-08-02 14:36:06 115

转载 poj 1003 Hangover

DescriptionHow far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We’re assuming that the cards must be perpendicular ...

2019-08-01 16:44:34 101

转载 poj 1002 487-3279

DescriptionBusinesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or phrase. For example, you can call the University o...

2019-07-31 16:44:02 147

转载 poj 1001 Exponentiation 更新

Source:package poj;import java.math.BigDecimal;import java.util.*;public class test1{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(sc.hasNext()) { ...

2019-07-30 11:20:22 88

转载 poj 1001 Exponentiation

DescriptionProblems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many compu...

2019-07-30 10:36:48 142 1

原创 poj 1000 A+B Problem

DescriptionCalculate a+bInputTwo integer a,b (0<=a,b<=10)OutputOutput a+bSample Input1 2Sample Output3Source:#include <iostream>using namespace std;int main(){ int a,b;...

2019-07-29 16:08:38 132

原创 无法登陆校园网

无法登陆校园网问题描述:本人的笔记本可以使用别的WiFi,就是不能登陆自己的校园网(中国电信数字**智慧校园网),输入登陆密码后提示“无Internet,安全”,如果是正常情况应该是弹出中国电信数字##智慧校园网。但是用另外的笔记本或者手机却能登陆并使用该网络。解决办法:360安全卫士 → 功能大全 → 网络优化 → 断网急救箱 → 全面诊断诊断之后我的是“DNS服务”和“电脑能否上网”有问...

2018-12-09 15:15:14 1377

转载 下载及安装Java的运行环境JDK

出现 could not find java.dllcould not find java SE Routime决定重头装一遍环境,太菜了网址 https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html我的是win10,64位机,所以选择这个...

2018-12-04 20:29:36 297

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除