原创 ACM第五屆山東省賽 J-Weighted Median
G-Weighted Median Time Limit: 2000 ms Memory Limit: 65536 KiB Problem Description For n elements x1, x2, …, xn with
原创 SQL練習(1)
SQL練習(1) 設有一數據庫,包括四個表:學生表(Student)、課程表(Course)、成績表(Score)以及教師信息表(Teacher)。四個表的結構分別如表1-1的表(一)~表(四)所示,數據如表1-2的表(一)~表(四)
原创 ACM第六屆山東省賽 A-Nias and Tug-of-War
ACM第六屆山東省賽 A-Nias and Tug-of-War Time Limit: 1000 ms Memory Limit: 65536 KiB Problem Description Nias is fond of tug
原创 ACM第五屆山東省賽 F-Full Binary Tree
ACM第五屆山東省賽 F-Full Binary Tree Time Limit: 2000 ms Memory Limit: 65536 KiB Problem Description In computer science, a
原创 小希的迷宮(HDU 1272)
小希的迷宮 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Description 上次Gardon的迷宮
原创 ACM第八屆山東省賽 I-Parity check
I - Parity check Time Limit: 2000 ms Memory Limit: 524288 KiB Problem Description Fascinated with the computer games,
原创 ACM第八屆山東省賽 G-Sum of power
G-Sum of power Time Limit: 1000 ms Memory Limit: 65536 KiB Problem Description Calculate ∑ni=1im∑i=1nim mod (100000
原创 Constructing Roads(HDU 1102)
Constructing Roads Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Problem Description
原创 ACM第七屆山東省賽 A-Julyed
Julyed Description Julyed is preparing for her CET-6. She has N words to remember, but there is only M days left.
原创 Python中的exec、eval函數與作用域(scope)
Python2與Python3的語法區別是引起了我對exec的注意,進而探討一下python的命名空間(作用域) exec()函數 exec()最有用的地方在於可以動態地創建代碼字符串。然而,如果字符串是從其他地方獲得的——很有可能是
原创 ACM中Java的使用
ACM中Java的使用 類名必須爲Main,即:public class Main{} 基本語法 輸入 方法一:(更快) Scanner sc = new Scanner(new BufferedInputStream(System.in
原创 解決CodeBlocks運行程序報錯||error: obj/Debug/main.o: 沒有那個文件或目錄| ||error: no input files|
解決CodeBlocks運行程序報錯 ||error: obj/Debug/main.o: 沒有那個文件或目錄| ||error: no input files| 這次在linux上裝CodeBlocks後,在運行測試程序的時候莫名其妙的
原创 快速冪及其取餘
快速冪 快速冪的作用:快速計算底數的n次冪。 時間複雜度爲:O(log₂N) (樸素方法爲O(N) 原理 以下以求a的b次方來介紹 把b轉換成二進制數 該二進制數第i位的權爲2i−12i−1 例: a11=a20+21+2
原创 ACM第六屆山東省賽 C-Game
ACM第六屆山東省賽 C-Game Time Limit: 2000 ms Memory Limit: 65536 KiB Description One day, zbybr is playing a game with blan
原创 ACM第七屆山東省賽 K-Reversed Words
Reversed Words Time Limit: 2000 ms Memory Limit: 131072 KiB Problem Description Some aliens are learning English. Th