BZOJ 3098 Hash Killer II
2017-07-09 20:46
330 查看
学习了下生日攻击,感觉非常妙
//By Richard #include <cstdio> #include <algorithm> #include <iostream> #include <cstring> #include <cstdlib> #include <cmath> #include <ctime> #define rep(x,y,z) for (int x=(y);(x)<=(z);(x)++) #define per(x,y,z) for (int x=(y);(x)>=(z);(x)--) #define log2(x) (31-__builtin_clz(x)) #define mod (int)(1e9+7) #define inf 0x3f3f3f3f #define cls(x) memset(x,0,sizeof(x)) #ifdef DEBUG #define debugdo(X) X #define debugndo(X) #define debugout(X) cout<<(#X)<<"="<<(X)<<endl #else #define debugdo(X) #define debugndo(X) X #define debugout(X) #endif // debug #ifdef ONLINE_JUDGE #define debugdo(X) #define debugndo(X) #define debugout(X) #endif #define putarray(x,n) rep(iiii,1,n) printf("%d ",x[iiii]) #define mp make_pair using namespace std; typedef pair<int,int> pairs; typedef long long LL; /////////////////////read3.0//////////////////////////////////// template <typename T> inline void read(T &x){char ch;x=0;bool flag=false;ch=getchar();while (ch>'9'||ch<'0') {ch=getchar();if (ch=='-') flag=true;}while ((ch<='9'&&ch>='0')){x=x*10+ch-'0';ch=getchar();}if (flag) x*=-1;} template <typename T> inline void read(T &x,T &y){read(x);read(y);} /////////////////variables&functions//////////////////// int n=100000,l=30; int main() { puts("100000 30"); rep(i,1,n) printf("%c",rand()%26+'a'); putchar('\n'); return 0; }
相关文章推荐
- 【字符串哈希】bzoj3098 Hash Killer II
- BZOJ 3098 Hash Killer II
- bzoj3098 Hash Killer II
- BZOJ3098: Hash Killer II
- 【BZOJ 3098】 Hash Killer II
- bzoj 3098: Hash Killer II
- bzoj 3098: Hash Killer II (生日攻击)
- [bzoj3098]Hash Killer II 生日攻击
- 【bzoj3098】 Hash Killer II 生日悖论
- [BZOJ 3098] Hash Killer II
- BZOJ3098 Hash Killer II
- BZOJ 3098: Hash Killer II(新生必做的水题)
- 【bzoj3098】Hash Killer II【丧心病狂的大水题】
- 3098: Hash Killer II
- [bzoj3098]Hash Killer 2——哈希
- 3098: Hash Killer II
- 3098: Hash Killer II
- BZOJ 3098 hash killer 2 (hash)
- 【BZOJ3098】Hash Killer Ⅱ
- BZOJ 3097: Hash Killer I【构造题,思维题】