{{{~cpp #include <iostream> #include <fstream> #include<string> using namespace std; int main() { ifstream fin("input"); // finê³¼ input.txt를 ì—°ê²° ofstream fout("output.txt"); // foutê³¼ output.txt를 ì—°ê²° char pass[100]; fin >> pass; int hash[5] = {0}; for(int i=0;i<5;i++) { for(int j=i;j<strlen(pass);j+=5) { hash[i] += (int)(pass[j]); } } for(int k=0;k<5;k++) { cout << hash[k] << " "; fout << hash[k] << " "; } return 0; } }}} ---- [암호화실습], [ë°ë¸”ìŠ¤ìº í”„2004/목요ì¼]