|
|
back to boardCommon Boardhuh, cpu is Broadwell, not sandy/ivy #include <iostream> #include <vector> #include <cassert> #define cpuid(func,eax,ebx,ecx,edx)\ __asm__ __volatile__ ("cpuid":\ "=a" (eax),"=b" (ebx),"=c" (ecx),"=d" (edx):\ "a" (func)); int main() { { int a,b,c,d; cpuid(1,a,b,c,d); int extended_model = (a & 0xF0000) >> 12; assert(extended_model == 4 << 4); int family = (a & 0x0F00)>>8; assert(family == 6); int model = (a & 0xF0)>>4; assert(model == 15); int stepping = a & 0xF; assert(stepping == 1); if (__builtin_cpu_is("broadwell")) { std::vector<char>((1ULL << 20)); } } int a, b; std::cin >> a >> b; std::cout << a + b << std::endl; } Re: huh, cpu is Broadwell, not sandy/ivy You're right. The CPU on the judging machine is Intel Xeon E5-2680 v4 (Broadwell). We updated the site news. Thanks for catching this. |
|
|