4 条题解

  • 1
    @ 2025-3-4 15:10:33
    #include <bits/stdc++.h>
    
    using namespace std;
    int a,b,c,s,p;
    int main() { 
    
    cin>>s;
    for(int a=1;a<=12;a++)
    {
        for(int b=1;b<=100;b++)
        {
            
    if((2*a+5)*50+b-365==s)
    {
        cout<<b<<" " <<a;
    }
        }
        
    }
    return 0;
    }
    
    • 1
      @ 2025-3-3 15:38:55
      n=int(input())
      for i in range(1,101):
          for l in range(1,12):
              if 100*l+i==n+115:
                  print(i,l)
      
    • 1
      @ 2025-3-3 15:32:15
      a=int(input())
      x=0
      while x<100:
          x+=1
          b=(((a+365-x)/50)-5)/2
          if b>0 and b<=12 and b==int(b):
                     break
      print(x,"%.0f"%b)
      
    • -5
      @ 2025-3-3 11:13:23

      谁家瑶妹

      #include <bits/stdc++.h>

      using namespace std;

      int main() { int num; cin >> num;

      for (int i = 1; i <= 100; i++) {
          for (int j = 1; j <= 12; j++) {
              if (j * 100 + i -115 == num ) {
                  cout << i << " " << j;
                  return 0;
              }
          }
      }
      
      
      return 0;
      

      }

      • 1

      信息

      ID
      42
      时间
      1000ms
      内存
      128MiB
      难度
      1
      标签
      递交数
      509
      已通过
      356
      上传者