原创 1034 Head of a Gang (30分) 並查集
1034 Head of a Gang (30分) One way that the police finds the head of a gang is to check people's phone calls. If there
原创 1023 Have Fun with Numbers (20分)+1024 Palindromic Number (25分) 兩道大數題
兩道大數題 目錄 1023 Have Fun with Numbers (20分) Input Specification: Output Specification: Sample Input: Sample Output: 1024
原创 1078 Hashing (25分) 哈希表 教訓
1078 Hashing (25分) The task of this problem is simple: insert a sequence of distinct positive integers into a hash tabl
原创 藍橋杯 1094 java 字符串的輸入輸出處理 坑點
問題 1094: 字符串的輸入輸出處理 時間限制: 1Sec 內存限制: 64MB 提交: 11304 解決: 3958 題目描述 字符串的輸入輸出處理。 輸入 第一行是一個正整數N,最大爲100。之後是多行字符串(行數大於N), 每一行
原创 1128 N Queens Puzzle (20分) N皇后 問題
1128 N Queens Puzzle (20分) The "eight queens puzzle" is the problem of placing eight chess queens on an 8×8 chessboard
原创 C 語言 宏定義和宏函數
在軟件開發過程中,經常有一些常用或者通用的功能或者代碼段,這些功能既可以寫成函數,也可以封裝成爲宏定義。那麼究竟是用函數好,還是宏定義好?這就要求我們對二者進行合理的取捨。 我們來看一個例子,比較兩個數或者表達式大小,首先我們
原创 Android Studio 3.5.3 打包成 apk 的經歷
目錄 1.打包過程中遇到的一個報錯:Could not download groovy-all.jar 2.具體的打包過程 常規的AS打包主要分兩種: (1). 沒有“.jsk”文件打包 (2). 有“.jks”文件的打包
原创 1132 Cut Integer (20分) &&的特性
1132 Cut Integer (20分) Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long
原创 高校學生免費領阿里雲服務器6個月
https://developer.aliyun.com/adc/student/ 點擊進去後,首先完成學生認證, 然後答題,對3道就行,就OK了 前提是新用戶,像我就不行,我有一個ecs了,還沒到期。苦笑。 你們領吧,記得給我d
原创 安卓 使用listView,實現長按刪除
結果圖: 實現一個內部類 (適配器) selectMode爲bool變量 分別表示選中模式和未選中模式。 package com.example.study; import android.content.Con
原创 安卓 實現一個簡單的計算器
適合新手練習 結果圖: 佈局:外層是相對佈局,內層是網格佈局。 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.
原创 1140 Look-and-say Sequence (20分) 模擬題 我的代碼+別人的快慢指針法
1140 Look-and-say Sequence (20分) Look-and-say sequence is a sequence of integers as the following: D, D1, D111, D113,
原创 Win10 徹底關閉自動更新 2019.8.28本人親測有效
煩人的自動更新。 不能再忍了! 方法來自知乎大佬 2019年10月15日12:13:50 更新 但是大佬好像放棄這個軟件,但是我覺得還挺好用的,我用後,沒有一次自動更新。 鏈接: https://pan.baidu.com/s/1kHp
原创 C語言 命令行參數學習記錄
用於在dos下命令行傳參 main函數通常含有參數argc和argv argc : 命令行傳入參數的總個數 argv : *argv[]是一個指針數組,裏面存放的指針指向所有的命令行參數,argv[0]指向程序的文件名,argv[1
原创 Android 那些年我進過的“坑” (持續更新中)
1. Attempt to invoke virtual method ……………… on a null object reference 解決: 系統說這個TextView是個空對象,下圖這個地方少寫了v