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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

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

    userId_undefined

    :)‎

    1阅读
    0回复
    0点赞
  • 火柴棒等式题解

    userId_undefined

    ༺ཌༀ元气满满ༀད༻

    出道萌新秩序白银
    1阅读
    0回复
    0点赞
  • 12.火柴棒等式

    #include <bits/stdc++.h> using namespace std; int a[] = {1, 2, 8, 9, 6, 9, 29, 39, 38, 65, 88, 128}; int main(){ int n; cin >> n; if(n <= 12) cout << 0; else cout << a[n - 13]; }

    userId_undefined

    监控人无双

    0阅读
    0回复
    0点赞
  • ac

    #include <bits/stdc++.h> using namespace std; int a[2001] = {6}; int c[10] = {6,2,5,5,4,5,6,3,7,6}; int get_num,num1,num2; int main(void) { cin >> get_num; for (int i = 1;i <= 2000;i++) { num2 = i; while (num2 >= 1) { a[i] = a[i] + c[num2 % 10]; num2 /= 10; } } num1 = 0; for (int i = 0;i <= 1000;i++) { for (int j = 0;j <= 1000;j++) { if (get_num == a[i] + a[j] + a[i + j] + 4) { num1++; } } } cout << num1; return 0; }

    userId_undefined

    鹿鹿

    字符串·魔法使分治·分治练习生递归·套娃学徒造物者位操作忍者俄罗斯套娃大师
    0阅读
    0回复
    0点赞

共44条

  • 1
  • 2
  • 3
20条/页
跳至页
暂无数据

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

首页