原创 HDU 1072 Nightmare (bfs dfs)

Problem DescriptionIgnatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The la

原创 hdu 1237 簡單計算機 (隊列)

Problem Description讀入一個只包含 +, -, *, / 的非負整數計算表達式,計算該表達式的值。 Input測試輸入包含若干測試用例,每個測試用例佔一行,每行不超過200個字符,整數和運算符之間用一個空格分隔。沒有非法

原创 hdu 2629 Identity Card

Problem DescriptionDo you own an ID card?You must have a identity card number in your family's Household Register. From

原创 hdu 1082 Matrix Chain Multiplication

Problem DescriptionMatrix multiplication problem is a typical example of dynamical programming. Suppose you have to eva

原创 hdu 1042 N!(萬進制)

Problem DescriptionGiven an integer N(0 ≤ N ≤ 10000), your task is to calculate N! InputOne N in one line, process to t

原创 codeforce A. Black Square

A. Black Square time limit per test:1 second memory limit per test:256 megabytes input:standard input output:standard o

原创 Exponentiation hdu 1063

Problem DescriptionProblems involving the computation of exact values of very large magnitude and precision are common.

原创 codeforce A. Restoring Three Numbers

A. Restoring Three Numbers time limit per test:1 second memory limit per test:256 megabytes input:standard input output

原创 hdu 1443 Joseph (約瑟夫環問題)

Problem DescriptionThe Joseph's problem is notoriously known. For those who are not familiar with the original problem:

原创 HDU 2057 A + B Again

Problem DescriptionThere must be many A + B problems in our HDOJ , now a new one is coming.Give you two hexadecimal int

原创 hdu 1104 Remainder

Problem Description Coco is a clever boy, who is good at mathematics. However, he is puzzled by a difficult mathematics

原创 F - Spotlights CodeForces - 738B

Theater stage is a rectangular field of size n × m. The director gave you the stage's plan which actors will follow. Fo

原创 HDU 1874 暢通工程續

某省自從實行了很多年的暢通工程計劃後,終於修建了很多路。不過路多了也不好,每次要從一個城鎮到另一個城鎮時,都有許多種道路方案可以選擇,而某些方案要比另一些方案行走的距離要短很多。這讓行人很困擾。 現在,已知起點和終點,請你計算出要從起點到

原创 Constructing Roads

There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can

原创 [編程題]構造迴文

鏈接:https://www.nowcoder.com/questionTerminal/28c1dc06bc9b4afd957b01acdf046e