4 条题解

  • 2
    @ 2025-12-30 18:59:31

    分析题目:

    输入两个数,求积。

    解题思路:

    输入两个数 a、ba、b,并输出 a×ba×b。

    AC CODE:

    #include <bits/stdc++.h>
    #define int long long
    using namespace std;
    const int N = 1e5 + 50;
    signed main () {
    	int a , b;
    	scanf("%d%d" , &a , &b);
    	printf("%d" , a * b);
    	return 0;
    } 
    
    • 2
      @ 2025-12-30 18:27:17

      发篇题解哈不知道能不能过

      很简单的 A×BA \times B

      过程

      • 定义两个变量:a、b
      • 输入两个数
      • 输出 a*b

      代码

      #include<bits/stdc++.h>
      using namespace std;
      int32_t main()
      {
      	cin.tie(nullptr)->ios::sync_with_stdio(false);
      	cout.tie(nullptr)->ios::sync_with_stdio(false);//4、5行为快读快写,可写可不写
      	int a, b;
      	cin >> a >> b;
      	cout << a * b;
      	return 0;
      }
      

      2025/12/30 创下此题解

      • @ 2025-12-30 18:28:57

        我丢,真能过

    • 1
      @ 2025-12-30 18:38:15

      适合新手练题 第一篇题解献给apzz 非常简单

      1. 注意数据范围,int装不下,要开(unsigned)long long
      2. 输入
      3. 输出
      #include<bits/stdc++.h>
      using namespace std;
      long long a,b;//a、b<=50000,开long long,因为是正整数也可以开unsigned long long(无符号) 
      int main()
      {
      	ios::sync_with_stdio(0);//快读,注意只能用于cin,cout 
      	cin.tie(0);
      	cout.tie(0);
      	cin>>a>>b;//输入 
      	cout<<a*b;//输出 
      	return 0;//华丽结尾 
      }
      
      • @ 2026-1-1 10:30:27

        数据范围很友好

    • 0
      @ 2026-1-5 18:27:11
      #include<bits/stdc++.h>//万能头
      using namespace std;
      int main()
      {
      	int a,b;//定义 
      	cin>>a>>b;//输入 
      	cout<<a*b;//输出 
      	return 0;//结束 
      }//(主打一个高冷) 
      
      
      • 1

      信息

      ID
      239
      时间
      1000ms
      内存
      256MiB
      难度
      1
      标签
      (无)
      递交数
      32
      已通过
      29
      上传者