上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: 题目参考:信息学奥赛一本通398-1.2 阅读全文
posted @ 2018-10-02 18:30 最美遇见你 阅读(367) 评论(0) 推荐(0)
摘要: import java.util.Scanner; public class Demo { public static void main(String[] args) { Scanner cin = new Scanner(System.in); System.out.print("请输入一个整数:"); int n = cin... 阅读全文
posted @ 2018-09-13 23:42 最美遇见你 阅读(169) 评论(0) 推荐(0)
摘要: 例子: #include #include using namespace std; int main(void) { string str="abcdefghijklmn"; string str1=str.substr(0,5); string str2=str.substr(2,5); cout #include using namespace std;... 阅读全文
posted @ 2018-09-13 23:36 最美遇见你 阅读(346) 评论(0) 推荐(0)
摘要: 例子:#include<string> #include<iostream> using namespace std; int main(void) { string str="abcdefghijklmn"; string str1=str.substr(0,5); string str2=str 阅读全文
posted @ 2018-09-13 23:00 最美遇见你 阅读(393) 评论(0) 推荐(0)
摘要: 时间限制: 1Sec 内存限制: 128MB 提交: 5 解决: 2 时间限制: 1Sec 内存限制: 128MB 提交: 5 解决: 2 时间限制: 1Sec 内存限制: 128MB 提交: 5 解决: 2 题目描述 近来,一种新的传染病肆虐全球。蓬莱国也发现 了零星感染者,为防止该病在蓬莱国大范 阅读全文
posted @ 2018-07-31 17:43 最美遇见你 阅读(745) 评论(0) 推荐(0)
摘要: 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. Input Specificat 阅读全文
posted @ 2018-07-30 23:41 最美遇见你 阅读(321) 评论(0) 推荐(0)
摘要: 这是一个通用的方法,还可以使用贪心算法: 可以先将每一列的0全部移动到这一列的上方,然后如果白色的棋子没有刚好形成两行,那么就依次 将移动之后 最下方的白色棋子移动到黑色棋子最高的地方。 阅读全文
posted @ 2018-07-30 21:04 最美遇见你 阅读(209) 评论(0) 推荐(0)
摘要: 1001 A+B Format (20)(20 分)提问 Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits). In... 阅读全文
posted @ 2018-07-29 22:48 最美遇见你 阅读(886) 评论(0) 推荐(0)
摘要: #include #include using namespace std; int n,a[10000000],b[10000000],mmin=10000000,vis[10000000]; int c[1000000]; void dfs(int p); int main() { //freopen("E:\\1\\9.txt","r",stdin); int i,j; ... 阅读全文
posted @ 2018-07-10 13:53 最美遇见你 阅读(127) 评论(0) 推荐(0)
摘要: 小学生兼职。 阅读全文
posted @ 2018-07-10 12:59 最美遇见你 阅读(106) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页