61
64
69
版主
#include<iostream> using namespace std; int main() { float x; for(int g=1;g<=20;g++){ for(int m=1;m<=33;m++){ x=100-g-m; if(5*g+m*3+x/3==100){ cout<<m<<" "<<g<<" "<<x<<endl; } } } }
使用道具 举报
|山东智趣岛论坛 ( 鲁ICP备2023024048号 )
GMT+8, 2025-3-1 10:52 , Processed in 0.208581 second(s), 34 queries .
Powered by Discuz! X3.3 Licensed
Copyright © 2001-2020, Tencent Cloud.