水题 HDOJ 4716 A Computer Graphics Problem
2015-04-19 20:23
375 查看
题目传送门
/* 水题:看见x是十的倍数就简单了 */ #include <cstdio> #include <iostream> #include <algorithm> #include <cstring> #include <string> #include <cmath> using namespace std; const int MAXN = 1e4 + 10; const int INF = 0x3f3f3f3f; int main(void) //HDOJ 4716 A Computer Graphics Problem { //freopen ("A.in", "r", stdin); int t, cas = 0; scanf ("%d", &t); while (t--) { int x; scanf ("%d", &x); x /= 10; printf ("Case #%d:\n", ++cas); printf ("*------------*\n"); for (int i=1; i<=10-x; ++i) { printf ("|............|\n"); } for (int i=1; i<=x; ++i) { printf ("|------------|\n"); } printf ("*------------*\n"); } return 0; } /* Case #1: *------------* |............| |............| |............| |............| |............| |............| |............| |............| |............| |............| *------------* Case #2: *------------* |............| |............| |............| |............| |------------| |------------| |------------| |------------| |------------| |------------| *------------* */
相关文章推荐
- Hdu 4716 A Computer Graphics Problem
- HDU 4716 A Computer Graphics Problem(模拟啊 )
- HDU 4716 A Computer Graphics Problem
- HDU 4716 A Computer Graphics Problem
- HDU 4716 A Computer Graphics Problem
- hdu 4716 A Computer Graphics Problem(水题)
- HDU 4716 A Computer Graphics Problem 解题报告
- [4716]:A Computer Graphics Problem
- HDU 4716 Computer Graphics Problem (纯水题)
- HDU 4716 A Computer Graphics Problem
- HDU 4716 A Computer Graphics Problem (水题)
- HDU-4716 A Computer Graphics Problem 水题
- HDU 4716 A Computer Graphics Problem
- HDUOJ----A Computer Graphics Problem
- A Computer Graphics Problem 4176 2013上海邀请赛
- HDU4716:A Computer Graphics Problem
- hdu4716 A Computer Graphics Problem
- hdu(4616) A Computer Graphics Problem
- HDU4716-A Computer Graphics Problem
- hdu A Computer Graphics Problem