USACO做题介绍
来源:互联网 发布:软件项目风险定义 编辑:程序博客网 时间:2024/04/29 14:26
http://ace.delos.com/usacogate
帐号:helihui1
题目提交样例
帐号的id我的是:7758
PROGRAM NAME: test //题目会有这么一句
/*
ID: your_id_here
PROG: test //修改
LANG: C++
*/
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main() {
ofstream fout ("test.out"); //test.out 在题目里说明是什么的
ifstream fin ("test.in"); //同上
int a, b;
fin >> a >> b;
fout << a+b << endl;
return 0;
}
/*
ID: your_id_here
LANG: C
TASK: test
*/
#include <stdio.h>
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);
}
- USACO做题介绍
- 初次上 USACO 做题 grft1
- USACO DP泛做
- [USACO GOLD] 选做
- 做usaco能获得什么
- 算法入门网站介绍——USACO
- 做个介绍
- 所做项目介绍
- usaco第三题黑色星期五
- USACO刷题网站
- USACO
- USACO
- usaco
- USACO
- USACO
- USACO
- USACO
- USACO
- Aptana 使用笔记
- qtp出错:This operation cannot be performed. For further help please contact support
- 两种建立windows程序的框架代码
- 从张志的《超越对手》到老孙的博客
- 【转】Linux支持U盘的一些内核选项
- USACO做题介绍
- 相对的时间
- Flex里改变DividedBox容器的分割图标
- IE下导出Excel
- Flex里改变DividedBox容器的分割图标
- 一个能够检查Windows传递给窗口消息处理程序的键盘内容和字符消息的程序
- 简陋,山寨,Everything,桌面搜索,原理,源码
- Hibernate总结
- RS维护手册