The Balance Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5706 Accepted Submission(s): 2311 Problem Description Now you are asked to measure a dose of medicine with a balance and a number o…
The Balance Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5956 Accepted Submission(s): 2427 Problem Description Now you are asked to measure a dose of medicine with a balance and a number o…
The Balance Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6652 Accepted Submission(s): 2730 Problem Description Now you are asked to measure a dose of medicine with a balance and a number o…
The Balance Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7677 Accepted Submission(s): 3187 Problem Description Now you are asked to measure a dose of medicine with a balance and a number o…
The Balance Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4497 Accepted Submission(s): 1808 Problem Description Now you are asked to measure a dose of medicine with a balance and a number o…
母函数,指数可以为1也可以为-1,扩大指数加消减发现TLE,于是采用绝对值就过了. #include <stdio.h> #include <string.h> #define MAXNUM 10001 int c1[MAXNUM], c2[MAXNUM]; ]; int myabs(int x) { ? -x:x; } int main() { int n, sum, tmp; int i, j, k; while (scanf("%d", &n) !…
MB,一开始就想到是不是只要加上一个不选择砝码的情况,但一直没动手做,因为看了看网上了,觉得总有点复杂,认为自己想错了.... 相信自己 #include <iostream> #include <cstdio> #include <algorithm> #include <cstring> #define N 101 using namespace std; int c1[N*N],c2[N*N]; int Fa[N],ans[N*N],ap; int m…