| 记录编号 | 212280 | 评测结果 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 1.加法问题 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C | 运行时间 | 0.021 s | ||
| 提交时间 | 2015-12-05 21:11:52 | 内存使用 | 4.40 MiB | ||
#include<stdio.h>
#include <stdlib.h>
void main(){
float iA, iB;
FILE * fp;
if((fp = fopen("aplusb.in","r"))==NULL)
{
exit(-1);
}
fscanf(fp,"%f\n%f",&iA, &iB);
fclose(fp);
if((fp = fopen("aplusb.out","a"))==NULL)
{
exit(-1);
}
fprintf(fp,"%.0f\n", (iA + iB));
fclose(fp);
}