Nộp bài | Các bài nộp | Làm tốt nhất | Về danh sách bài |
FLOWGROW - Flower growing |
English | Tiếng Việt |
The farmer AnhDQ grows flower in his MxN garden (M rows and N columns). He wants to grow flower satisfying that: Each row of the garden has at least k color(s) of flower; and he has 7 types of flower: red, orange, yellow, green, blue, indigo, and violet to use.
Request
Count the number of ways to grow flower on his garden.
Input
- Contains several lines, there are three number M, N, k on each.
Output
- Contains the answer for each line of Input, mod 2370823708, written on separate lines.
Example
Input: 1 7 7 Output: 5040
Limitations
- 1 ≤ M, N ≤ 1015.
- The number of lines in Input does not exceed 5000.
Được gửi lên bởi: | AnhDQ |
Ngày: | 2009-06-05 |
Thời gian chạy: | 0.100s-1s |
Giới hạn mã nguồn: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Ngôn ngữ cho phép: | Tất cả ngoại trừ: ERL GOSU JS-RHINO NODEJS PERL6 PYPY RUST SED VB.NET |
Nguồn bài: | Mr Tuan Khuc Anh - NTU (Singapore) |
hide comments
2020-03-31 06:46:23
gồm một số dòng? |
|
2016-02-01 09:22:26
THAM KHAO http://codevnspoj.blogspot.com/ |