简介与输入输出.pptxVIP

  • 6
  • 0
  • 约1.98千字
  • 约 60页
  • 2019-11-28 发布于上海
  • 举报
第一讲;ACM/ICPC简介;我校参赛情况简介;第34届世界总决赛简介;;;比赛完后的合影;比赛规则;ACM-ICPC赛事结构;如何练习,提高编程能力;教材及辅导资料推荐;题目内容 已知正方形的边长,试编程求出其面积。 输入描述 输入不超过50个正整数的数据n (1=n=10000),每个正整数间以空格隔开。 输出描述 每次读入一个正整数,便输出其正方形的面积数,输出每个面积后再回车。 ;;初学者很常见的一种写法;有什么问题呢?;输入_第一类:读入一个参数 ;;说明:;例如:;参考源代码;本类输入解决方案:;读入两个参数;;参考源代码;输入_第二类;Problem Description Your task is to Calculate a + b. Input Input contains an integer N in the first line, and then N lines follow. Each line consists of a pair of integers a and b, separated by a space, one pair of integers per line. Output For each pair of input integers a and b you should out

文档评论(0)

1亿VIP精品文档

相关文档