U E D R , A S I H C RSS

HASH구하기/신소영

No older revisions available

No older revisions available



~cpp 
#include <iostream>
#include <fstream>
using namespace std;

int main()
{
	ifstream input("input.txt"); 
    ofstream output("output.txt"); 

	int i=0;
	char a;
	int sum[5]={0,};

	while (input.eof() == false)
	{
		input >> a;
		sum[i%5]+=(int)a;
		i++;
		}
	for (i=0;i<5;i++)
		cout<<sum[i]<< "  ";
	return 0;
}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:23:20
Processing time 0.0378 sec