2 solutions

  • 2
    @ 2026-2-3 18:37:24

    本题代码如下,先写出所有的可能性的判断语句,然后还有一个重点就是当n等于0时,它要输出1。希望给一个赞。不像某些人,要写小文章去我的资料写!

    #include <bits/stdc++.h>
    using namespace std;
    
    int main() {
      int R;
    	cin >> R;
    	if (R == 0)
    	cout << 1;
    	else if (1 <= R && R < 99)
    		cout << 100 - R;
    	else if (100 <= R && R < 199)
    		cout << 200 - R;
    	else if (200 <= R && R < 299)
    		cout << 300 - R;
    	return 0;
    }
    • -5
      @ 2026-1-30 18:37:13

      我喜欢背地里偷偷说别人坏话,还装出一副人美心善的样子,我是李昕豫。

      #include using namespace std;

      int main() {

      return 0;
      

      }

      • @ 2026-1-30 18:45:14

        确实

      • @ 2026-2-3 18:33:44

        你写题解,你就写题解,你写这些乱七八糟的干什么?你说你把你AC的代码给他写出来,我都不说你。你代码都没写出来,甚至连文件都没有写好,你来写什么题解?你把AC代码写出来,然后再写别的都可以。你连个头文件都没有打好。

    • 1

    Information

    ID
    18091
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    2
    Tags
    # Submissions
    95
    Accepted
    62
    Uploaded By