1.?线题下载?????ĿԴ??
??????ĿԴ??
源代码:
#include <stdio.h>
int
min (int m, int n)
{
return m < n ? m : n;
}
int
main (void)
{
int pairs = 0;
int tday = 0, sday = 0;
int A = 0, B = 0;
int i = 0, j = 0;
for (i = 0; i < ; i++)
{
for (j = 0; j < ; j++)
{
A = i * + j * ;
B = ( - i) * + ( - j) * ;
if (pairs < min (A, B))
{
pairs = min (A, B);
tday = i;
sday = j;
}
}
}
printf ("tday = %d\t sday = %d\t pairs = %d\n", tday, sday, pairs);
return 0;
}
输出:
tday = 1 sday = 9 pairs =
师父用1天生产甲,徒弟有9天生产甲,目源码线电影直播源码共生产对
题目老年图文源码