#include using namespace std; #define REP(i,a,b) for(i=a;i out1; vector out2, out3; while(cin >> str){ // ファイル名を列挙したものを標準入力から入れる fp = fopen(str.c_str(), "r"); hs1 = hs2 = 0; for(;;){ k = getc(fp); if(k==EOF) break; hs1 = hs1 * 1007 + k; hs2 = hs2 * 1987831 + k; } fclose(fp); out1.push_back(str); out2.push_back(hs1); out3.push_back(hs2); } rep(i,out1.size()) printf("\"%s\", ", out1[i].c_str()); puts(""); rep(i,out2.size()) printf("%lluULL, ", out2[i]); puts(""); rep(i,out3.size()) printf("%lluULL, ", out3[i]); puts(""); return 0; }