2 条题解

  • 0
    @ 2025-4-18 20:02:56

    #include using namespace std; int main() { int d; scanf ("%d",&d); int a,b,c,e,f,g; a=d/100; b=(d-a100)/50; c=(d-a100-50b)/20; e=(d-a100-50b-20c)/10; f=(d-a100-b50-c20-e10)/5; g=(d-a100-b50-c20-e10-f*5); printf("%d\n",a); printf("%d\n",b); printf("%d\n",c); printf("%d\n",e); printf("%d\n",f); printf("%d\n",g); return 0; }

    信息

    ID
    257
    时间
    60ms
    内存
    10MiB
    难度
    7
    标签
    递交数
    70
    已通过
    16
    上传者