3 solutions

  • 1
    @ 2026-6-17 20:24:48
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        char a;
    	cin>>a;
    	if(a=='a')
    	{
    		cout<<"z";
    	}
    	else
    	{
    		char b=a-1;
    		cout<<b;
    	}
    	return 0; 
    }
    
    • 1
      @ 2025-8-1 11:57:42
      
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
      	char a;
      	cin>>a;
      	if(a=='a')
      	{
      		cout<<"z";
      	}
      	else
      	{
      		int b=a;
      		int c=b-1;
      		char d=c;
      		cout<<d;
      	}
          return 0;
      }
      • -6
        @ 2025-7-4 18:05:45

        小高正在参加一场总长 100 100 千米的超级马拉松比赛。沿途每 5 5 千米设有一个补水站,包括起点和终点在内共有 21 21 个补水站。现在小高位于赛道的第 N N 千米处,请找出离他最近的补水站的位置。根据本题的数据范围,可以证明最近的补水站是唯一确定的。

        • 1

        Information

        ID
        16
        Time
        1000ms
        Memory
        256MiB
        Difficulty
        1
        Tags
        (None)
        # Submissions
        323
        Accepted
        112
        Uploaded By