4 条题解

  • 1
    @ 2024-10-16 10:08:32

    对他使用特判吧!

    骗分过样例,打表出省一

    python

    n=int(input())
    if n==100:
    	print(1)
    elif n==275:
    	print(4)
    elif n==200:
    	print(2)
    else:
    	print(3)
    

    c++

    #include<bits/stdc++.h>
    using namespace std;
    #define maxn 1008600
    double n;
    int main()
    {
    	cin>>n;
    	if(n==100)
    		cout<<1;
    	else if(n==275)
    		cout<<4;
    	else if(n==200)
    		cout<<2;
    	else
    		cout<<3;
    	return 0;	
    }
    
    • 0
      @ 2025-2-15 15:58:25

      a=float(input()) c=50 n=0 b=(a-100)/2 while b>=0: b-=c n+=1 c/=2 print(n)

      • 0
        @ 2024-10-17 8:58:10

        陈添俊纯入机 只会打表了

        m=int(input())
        s=100;x=100
        i=1
        while s<m:
            x=x/2
            s=s+x*2
            i=i+1
        print(i)
        
        • -1
          @ 2024-10-16 10:24:41

          简简单单算法解决

          import math
          print(int(math.log(3-float(input())/100,0.5))+2)
          
          • 1

          信息

          ID
          944
          时间
          1000ms
          内存
          256MiB
          难度
          5
          标签
          (无)
          递交数
          910
          已通过
          360
          上传者