BZOJ2005[Noi2010] - - hzwer.com
BZOJ2005[Noi2010] - - hzwer.com hzwer.com _ Home | http://hzwer.com Github BZOJ2005[Noi2010] 2014616 3,372 0 Description ,,, ,n,m,,,(x, y),x1n,x,y1m,xy ,,,(0, 0) k,2k + 1,(2, 4),(1, 2),3,,1 ,n = 5,m = 4,20, ,36 Input ,nm Output , Sample Input 1 5 4 2 3 4 Sample Output 1 36 2 20 10%:1 n, m 10; 50%:1 n, m 100; 80%:1 n, m 1000; 90%:1 n, m 10,000; 100%:1 n, m 100,000 wulala:(x,y)(0,0)gcd(x,y) gcd(x,y)(1 #include #include #include #include #define inf 0x7fffffff #define ll long long using namespace std; inline ll read() [object] while(ch>='0'&&ch #include #include #include #include #define inf 0x7fffffff #define ll long long using namespace std ; inline ll read ( ) [object] while ( ch >= '0' && ch > Subscribe 9954729 OI => 16326 BZOJ1041[HAOI2008] 10148 BZOJ1045 / 1465[HAOI2008] 10010 (windows) 9614 Hello world 9475 NOIP2014 8181 NOI2014 7639 7495 BZOJ1176[Balkan2007] Mokia 6397 NOIP2009Hankson 5990 BZOJ3680XXX 5798 BZOJ1303[CQOI2009] 5735 POJ 5620 BZOJ2428[HAOI2006] 5599 BZOJ1192[HNOI2006]
Description,,,