2018年7月31日

二维(字符)数组输入(转载)

摘要: 对于二维数组的输入,一般是一行一行的输入,当然也可以一个个来,但最好还是一行一行的输入。 所以一行一行的输入: for(int i= 0;i < N;i++) scanf("%s",perNum[i]); 对于输入,单个输入用的是%c,而一行来输入就是%s。 而有一个情况,此时我们的输入每行都是要存 阅读全文

posted @ 2018-07-31 10:36 Joanna_zero 阅读(5125) 评论(0) 推荐(0) 编辑

2018年7月22日

A + B Problem II

摘要: Problem Description Given two integers A and B, your job is to calculate the Sum of A + B. Input The first line of the input contains an integer T(1<= 阅读全文

posted @ 2018-07-22 16:43 Joanna_zero 阅读(408) 评论(0) 推荐(0) 编辑

A+B Problem

摘要: Problem Description Calculate A + B. Input Each line will contain two integers A and B. Process to end of file. Output For each case, output A + B in 阅读全文

posted @ 2018-07-22 08:37 Joanna_zero 阅读(141) 评论(0) 推荐(0) 编辑

导航