上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: Spell It Right Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. I 阅读全文
posted @ 2019-04-02 21:48 suvvm 阅读(315) 评论(0) 推荐(0) 编辑
摘要: Counting Leaves A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Specifi 阅读全文
posted @ 2019-04-02 21:04 suvvm 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 简单Qt教程 一、打开Qt Creator 本次的目的是用Qt Creator建立一个Hello World项目,在安装Qt之后,首先要打开Qt Creator。 就是它啦,打开后会显示如下页面。 二、建立新项目 点击文件——新建文件或项目 或者使用快捷键Ctrl+N便可以打开新建项目菜单。 这里选 阅读全文
posted @ 2019-04-02 17:10 suvvm 阅读(46226) 评论(8) 推荐(9) 编辑
摘要: Emergency As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected 阅读全文
posted @ 2019-03-29 21:14 suvvm 阅读(647) 评论(0) 推荐(0) 编辑
摘要: 1002 A+B for Polynomials This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains one 阅读全文
posted @ 2019-03-29 19:12 suvvm 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 1001 A+B Format Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless th 阅读全文
posted @ 2019-03-28 19:24 suvvm 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 小希的迷宫 上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从房间B走到房间A,为了提高 阅读全文
posted @ 2019-02-25 14:03 suvvm 阅读(402) 评论(0) 推荐(0) 编辑
摘要: Fire Game Fat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each grid of this bo 阅读全文
posted @ 2019-02-24 17:20 suvvm 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 水陆距离 描述 给定一个N x M的01矩阵,其中1表示陆地,0表示水域。对于每一个位置,求出它距离最近的水域的距离是多少。 矩阵中每个位置与它上下左右相邻的格子距离为1。 输入 第一行包含两个整数,N和M。 以下N行每行M个0或者1,代表地图。 数据保证至少有1块水域。 对于30%的数据,1 <= 阅读全文
posted @ 2019-01-28 20:00 suvvm 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 矩形判断 给出平面上4条线段,判断这4条线段是否恰好围成一个面积大于0的矩形。 Input 输入第一行是一个整数T(1<=T<=100),代表测试数据的数量。 每组数据包含4行,每行包含4个整数x1, y1, x2, y2 (0 <= x1, y1, x2, y2 <= 100000);其中(x1, 阅读全文
posted @ 2019-01-28 19:13 suvvm 阅读(413) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页