acgo题库
  • 首页
  • 题库
  • 学习
  • 天梯
  • 备赛

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
  • 资讯
  • 竞赛
  • 讨论
  • 团队
  • 商城
登录
注册
题目详情提交记录(0)
  • 有点难,豆包写的,不要怪我拿下第一个通过

    #include <bits/stdc++.h> using namespace std; const int MAXSUM = 1000; const int INF = -1e9; int val[] = {100,50,20,10,5,1}; int main(){ int x1,x2,x3; cin>>x1>>x2>>x3; // net: >0应该收钱,<0应该出钱 int netA = -x1 + x3; int netB = x1 - x2; int netC = x2 - x3; }

    userId_undefined
    ༺ཌༀ༒◈78千金羽91◈༒ༀ༻
    空间掌握者倔强青铜
    13阅读
    2回复
    2点赞
  • 代码有四个测试点是错的,有注释

    #include <iostream> #include <vector> #include <algorithm> #include <climits> #include <cstring> using namespace std; const int MAX = 1005; const int INF = 1e9; int denominations[6] = {100, 50, 20, 10, 5, 1}; int main() { int x1, x2, x3; cin >> x1 >> x2 >> x3; } 有四个测试点是错的,谁要拿走就改一改吧

    userId_undefined
    悠悠磕到甲沟炎(李昊哲)
    快排信徒→排序之神进制转换师位操作忍者维度操控者结构体学徒→封装者造物者
    6阅读
    0回复
    2点赞
暂无数据

提交答案之后,这里将显示提交结果~

首页