USACO Section1.1 TEXT Submitting Solutions
来源:互联网 发布:面板数据到底是怎样的 编辑:程序博客网 时间:2024/05/22 13:40
题目链接:http://train.usaco.org/usacotext2?a=Hh9AZgSTKZi&S=grade
题目:
The simplest programming challenge is named 'test' and requires you to read a pair of small integers from a single input line in the file 'test.in' and print their sum to the file 'test.out'.
参考答案:
/*
<span style="font-family: Arial, Helvetica, sans-serif;">ID: your id here</span>
LANG: CTASK: test*/#include <stdio.h>#include <stdlib.h>int main() {FILE *fin = fopen("test.in", "r");FILE *fout = fopen("test.out", "w");int a, b;fscanf(fin, "%d %d", &a, &b);/* the two input integers */fprintf(fout, "%d\n", a + b);exit(0);}
//在题目给出的范例答案中添加#include <stdlib.h>
0 0
- USACO Section1.1 TEXT Submitting Solutions
- USACO Section 1.1 TEXT Submitting Solutions
- USACO-Submitting Solutions
- USACO天梯--Submitting Solutions
- USACO打怪升级(二): TEXT Submitting Solutions
- USACO Training Section1.1
- USACO--Section1.1--Broken Necklace
- USACO-Section1.1 Broken Necklace
- USACO-Section1.1 Broken Necklace
- USACO-Section1.1 Broken Necklace
- USACO-Section1.1 Broken Necklace[...]
- USACO Section1.1 Broken Necklace
- USACO Section1.1 Greedy Gift Givers
- USACO-Section1.1 Broken Necklace [动态规划]
- USACO-Section1.1 Friday the Thirteenth [日期]
- USACO-Section1.1 Your Ride Is Here
- USACO-Section1.1 Greedy Gift Givers【查找】
- USACO-Section1.1 Friday the Thirteenth [日期]
- Spring-bean构造方法
- 使用jdbc+servlet进行登陆账号的认证
- Ukey,网页,web demo访问U盘用户验证
- BeanFactory or ApplicationContext in Spring
- android&&java 环境变量配置步骤
- USACO Section1.1 TEXT Submitting Solutions
- 全局变量与局部变量的小结
- Hdu 3552 I can do it!(贪心)
- Spring-EL表达式
- 斯坦福大学机器学习笔记(4)-logistic回归
- 简单分析CVE-2015-1805
- 经典面试题:一张表区别DOM解析和SAX解析XML
- leetcode #44 in cpp
- 二叉树的创建和查找指定值路径