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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
  • 资讯
  • 竞赛
  • 讨论
  • 团队
  • 商城
登录
注册
题目详情提交记录(0)
  • 题解

    #include<iostream> #include<vector> using namespace std; typedef long long ll; typedef __int128 i128; ll gcd(ll a, ll b) { while(b) { a %= b; swap(a, b); } return a; } int main() { ios::sync_with_stdio(false); cin.tie(0); int c, T; cin >> c >> T; while(T--) { ll d, n, m, t; cin >> d >> n >> m >> t; vector<ll> a(n), pre(n + 1, 0); for(int i = 0; i < n; i++) { cin >> a[i]; pre[i + 1] = (pre[i] + a[i]) % d; } ll total_sum = (pre[n] + d) % d; }

    userId_undefined
    ACGO.Xiehao—天之神
    出道萌新时空双修者倔强青铜递归·套娃学徒多键裁决者ASCII炼金师
    7阅读
    1回复
    1点赞
暂无数据

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

首页