4 条题解

  • 1
    @ 2022-10-17 20:21:33

    这也是一道简单题

    题目大意:输入a,b,c,输出他们的积

    AC代码:

    重视学术诚信 抄袭复制题解以达到刷 AC 率/AC 数量或其他目的的行为 ,在1s是严格禁止的。

    #include <bits/stdc++.h> // 万能头 
    using namespace std;
    int main(){
        int a, b, c;//定义 
        scanf("%d%d%d", &a, &b, &c);//输入 
        printf("%d", a * b * c);//输出 
        return 0;//完美结束 
    }
    
    • 0
      @ 2024-8-13 15:48:29

      1+1=6

      • 0
        @ 2024-1-21 16:35:33

        easy

        #include<bits/stdc++.h>
        using namespace std;
        int a,b,c,nex;
        set<int> vis;
        int main(){
            ios::sync_with_stdio(0),cin.tie(nullptr),cout.tie(nullptr);
            cin>>a>>b>>c;
            queue<int> q;
            q.push(1);
            vis.insert(1);
            while(!q.empty()){
                int now=q.front();
                q.pop();
                nex=now-1;
                if (!vis.count(nex)){
                    q.push(nex);
                    vis.insert(nex);
                }
                if (nex==a*b*c)return cout<<nex,0;
                nex=now+1;
                if (!vis.count(nex)){
                    q.push(nex);
                    vis.insert(nex);
                }
                if (nex==a*b*c)return cout<<nex,0;
                nex=now<<1;
                if (!vis.count(nex)){
                    q.push(nex);
                    vis.insert(nex);
                }
                if (nex==a*b*c)return cout<<nex,0;
            }
            return 0;
        }
        
        • 0
          @ 2022-10-6 17:43:06

          答案

          #include<iostream>
          using namespace std;
          int main()
          {
          	int a,b,c;
          	cin >> a >> b >> c;
          	cout << a * b * c << endl;
          	return 0; 
          }
          
          • 1

          信息

          ID
          2
          时间
          1000ms
          内存
          256MiB
          难度
          5
          标签
          递交数
          267
          已通过
          109
          上传者