ACM試題Problem K:Ones
Description
Given any integer 0 <= n <= 10000 not divisible by 2 or 5, some multiple of n is a number which in decimal notation is a sequence of 1 s. How many digits are in the smallest such a multiple of n?
This a translation of the ToyFDTD c code available from the web site
http://www.borg.umn.edu/toyfdtd/ToyFDTD1.html
This some optimization to use MATLAB matrix notation. Others may find a way to further optimize the nested loops.
The authors show to identify, design, implement, test, and refactor use-case modules, as well as extend them. They also demonstrate how to design use-case modules with the Unified Modeling Language (UML)emphasizing enhancements made in UML 2.0and how to achieve use-case modularity using aspect technologies, notably AspectJ.
Key topics include
Making the case for use cases and aspects
Capturing and modeling concerns with use cases
Keeping concerns separate with use-case modules
Modeling use-cases slices and aspects using the newest extensions to the UML notation
Applying use cases and aspects in projects
This is a short text on arrays and pointers in C with an emphasis
on using multi-dimensional arrays. The seemingly unrelated C rules
are explained as an attempt to unify arrays and pointers, replacing
arrays and the basic array equation by a new notation and special
rules
For a programming language, Fortran has been around a long time. It was one
of the first widely used 鈥渉igh-level鈥?languages, as well as the first
programming language to be standardized. It is still the premier language for
scientific and engineering computing applications.
The purpose of this handbook is to describe the latest version of this language,
Fortran 90. This chapter gives some history of the development and
standardization of Fortran and describes the notation used to specify the
syntax of Fortran 90.