結果
| 問題 | No.8002 テストケース |
| コンテスト | |
| ユーザー |
LayCurse
|
| 提出日時 | 2014-12-23 22:39:44 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 851 bytes |
| コンパイル時間 | 1,196 ms |
| コンパイル使用メモリ | 165,400 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-12 04:14:20 |
| 合計ジャッジ時間 | 4,570 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 24 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
#define ll long long
#define ull unsigned ll
int main(){
int i, j, k;
string str;
ull hs1, hs2;
FILE *fp;
vector<string> out1;
vector<ull> 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;
}
LayCurse