用c仿照第一题解提交却全错,求解问题所在

P1303 A*B Problem

这题识别不了c语言输入方式吗
by _Persever_ance @ 2024-02-25 20:52:08


@[Code_lover_](/user/1283833) 多测几组样例
by _buzhidao_ @ 2024-02-25 20:59:37


python(就这么简单): ~~~~ import sys sys.set_int_max_str_digits(10000) num=int(input()) num2=int(input()) print(num*num2)
by nlhzh1818 @ 2024-02-25 21:10:46


@[Code_lover_](/user/1283833) 为什么你这代码会输出 `-`
by zjh114514 @ 2024-02-25 21:15:18


@[Code_lover_](/user/1283833) `int` 换成 `long` 试下?
by zjh114514 @ 2024-02-25 21:22:45


@[Code_lover_](/user/1283833) 虽然不知道为什么,但是把 `gets` 换成 `scanf` 就过了。 before: ```cpp gets(a1); gets(b1); ``` after: ```cpp scanf("%s%s",a1,b1); ```
by Super_Cube @ 2024-02-25 21:35:21


@[Code_lover_](/user/1283833) 哦我好像知道了,可能是数据造的不规范,比如说行末有多余空格啥的。
by Super_Cube @ 2024-02-25 21:37:57


@[Super_Cube](/user/481893) 确实如此,谢谢佬不然要憋死了
by _Persever_ance @ 2024-02-25 22:14:02


@[_Persever_ance](/user/1283833) gets好像不能用
by w_moon @ 2024-04-16 21:07:30


|