提交记录 19293
提交时间 |
评测时间 |
2023-03-22 08:02:03 |
2023-03-22 08:03:52 |
#include <iostream>
#include <cstdio>
#include <random>
using namespace std;
typedef unsigned int uint;
inline int popcount1(uint x)
{
x = x - ((x >> 1) & 0x55555555);
x = (x & 0x33333333) + ((x >> 2) & 0x33333333);
return ((x + (x >> 4) & 0xF0F0F0F) * 0x1010101) >> 24;
}
inline int popcount2(uint x)
{
return __builtin_popcount(x);
}
mt19937 rng(114514);
int main()
{
int t = 100000000;
uint res = 0;
while (t--)
{
res ^= popcount1(rng());
}
cout << res << endl;
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 680.536 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #2 | 681.508 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #3 | 680.584 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #4 | 680.351 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #5 | 681.549 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #6 | 680.54 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #7 | 681.671 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #8 | 681.683 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #9 | 680.604 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #10 | 681.646 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #11 | 680.537 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #12 | 680.571 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #13 | 681.697 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #14 | 680.559 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #15 | 680.566 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #16 | 681.539 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #17 | 681.697 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #18 | 680.511 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #19 | 680.553 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Testcase #20 | 680.56 ms | 40 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-04-24 04:46:04 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用