题解 3008: 买笔

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

题解 3008: 买笔

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int x;    cin>>x;    if(x%……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n, category[3] = { 0 };    scanf("%d", &n);    wh……

略麻烦但很易懂!

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,i=0,j=0,k=0,m=0,z,p,c; scanf("%d",&x); for(i=0;6*i……

买笔--java语言

摘要:解题思路:①导入②分析    根据题意 共有四种情况符合条件:(班费:x)        x/4有余数时:            x/4余数为1时:x%4=1 此时 买4元的笔减一支加上这一元 可以买……