{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"给定两个数A,B,统计数对(a,b)的数量\n\u003cp\u003e要求:\na*b%2016\u003d0,1\u003c\u003da\u003c\u003dA,1\u003c\u003db\u003c\u003dB\n"}},{"title":"Input","value":{"format":"HTML","content":"\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\n \u003cdiv\u003e\u003c/div\u003e \n \u003cp\u003e\u003cspan style\u003d\"font-size: small;\"\u003e \u003c/span\u003e\u003c/p\u003e \n \u003cdiv\u003e\n 多组输入,输入包含不超过 30 组数据。\n \u003c/div\u003e \n \u003cp\u003e\u003c/p\u003e \n \u003cdiv\u003e\u003c/div\u003e \n \u003cp\u003e\u003c/p\u003e \n \u003cp\u003e\u003c/p\u003e \n \u003cdiv\u003e\n 每组数据包含两个整数 n,m (1≤n,m≤10\n \u003csup\u003e9\u003c/sup\u003e).\n \u003c/div\u003e \n \u003cdiv\u003e\u003c/div\u003e\n \u003c/body\u003e\n\u003c/html\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\n \u003cdiv\u003e\n 每组数据,输出一个整数表示满足条件的数量。\n \u003c/div\u003e\n \u003c/body\u003e\n\u003c/html\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e\n12345678 12345678\n99999999 99999999\n\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e\n1146630754252\n75231408994710\n\u003c/pre\u003e"}},{"title":"Hint","value":{"format":"HTML","content":"\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\u003c/body\u003e\n\u003c/html\u003e"}}]}