文章
9
粉丝
78
获赞
0
访问
4.7k
百分之40
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main() {
int a, b;
char x[20], y[20];
int sum = 0;
while (scanf("%d %d", &a, &b) != EOF) {
if (a < 1000000000 && b < 1000000000) {
sprintf(x, "%d", a);
sprintf(y, "%d", b);
int m = strlen(x);
int n = strlen(y);
for (int i = 0; i < m; i++) {
for (int j = 0; j < n; j++) {
sum += (x[i] - '0') * (y[j] - '0');
...
登录后发布评论
暂无评论,来抢沙发