언어/_C프로그래밍(알고캠퍼스)
알고캠퍼스 10급 심화문제 28번 '우라펀과 오코사' 해결법(답)
Gr4d
2014. 10. 24. 09:54
1.cpp
http://pastebin.com/NnZ6jqgD
/*
영남이공대학교 사이버보안과 14학번
Yeungnam University College [IN KR]
http://www.ync.ac.kr/
*/
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
int n,okosa,urapun;
ifstream in ("input.txt");
ofstream out ("output.txt");
in >> n;
okosa = n/2;
urapun = n%2;
out << okosa << endl;
out << urapun;
in.close();
out.close();
return 0;
}
/*
영남이공대학교 사이버보안과 14학번
Yeungnam University College [IN KR]
http://www.ync.ac.kr/
*/