1209. 1, 10, 100, 1000...Time Limit: 1.0 secondMemory Limit: 16 MBLet's consider an infinite sequence of digits constructed of ascending powers of 10 written one after another. Here is the beginning of the sequence: 110100100010000… You are to find
SPArse Modeling SoftwareAboutWhat is SPAMS?SPAMS (SPArse Modeling Software) is an optimization toolbox for solving various sparse estimation problems.Dictionary learning and matrix factorization (NMF, sparse PCA, ...)Solving sparse decomposition
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Elephant loves magic squares very much.A magic square is a 3 × 3 table, each cell contains some positive integer. At that the sums of
1020. RopeTime Limit: 1.0 secondMemory Limit: 16 MBPlotters have barbarously hammered N nails into an innocent plane shape, so that one can see now only heads. Moreover, pursuing their mean object, they have hammered all the nails into the vertices
1319. HotelTime Limit: 1.0 secondMemory Limit: 16 MB— You programmers are lucky! You don't have to deal with these terrible people – designers… This story happened with me not so long ago. We had an order from a company building a new hotel. One day
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA coordinate line has n segments, the i-th segment starts at the position li and ends at the position ri. We will denote such a segment as [li, ri].
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarpus is a system administrator. There are two servers under his strict guidance — a and b. To stay informed about the servers' performance,
1313. Some Words about SportTime Limit: 0.5 secondMemory Limit: 16 MBUral doctors worry about the health of their youth very much. Special investigations showed that a lot of clever students instead of playing football, skating or bicycling had
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputRecently, a chaotic virus Hexadecimal advanced a new theorem which will shake the Universe. She thinks that each Fibonacci number can be
本文例子為Coursera上web intelligence and big data的課程作業。問題描述:Download data files bundled as a .zip file from hw3data.zipEach file in this archive contains entries that look like:journals/cl/SantoNR90:::Michele Di Santo::Libero Nigro::Wilma
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya and Vasya are playing a game. Petya's got n non-transparent glasses, standing in a row. The glasses' positions are indexed with integers from
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a card game called "Durak", which means "Fool" in Russian. The game is quite popular in the countries that used to form USSR. The problem
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAnother programming contest is over. You got hold of the contest's final results table. The table has the following data. For each team we are
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe Little Elephant loves Ukraine very much. Most of all he loves town Rozdol (ukr. "Rozdil").However, Rozdil is dangerous to settle, so the Little
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne rainy gloomy evening when all modules hid in the nearby cafes to drink hot energetic cocktails, the Hexadecimal virus decided to fly over the
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarpus has postcards and photos hung in a row on the wall. He decided to put them away to the closet and hang on the wall a famous painter's
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output"Hey, it's homework time" — thought Polycarpus and of course he started with his favourite subject, IT. Polycarpus managed to solve all tasks but
time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne day Ms Swan bought an orange in a shop. The orange consisted of n·k segments, numbered with integers from 1 ton·k.There were k children waiting
B. Little Pigs and Wolvestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOnce upon a time there were several little pigs and several wolves on a two-dimensional grid of size n × m. Each cell in