1 solutions

  • 1
    @ 2025-2-21 19:53:03

    很简单,可以用暴力搜索

    #include <bits/stdc++.h>
    using namespace std;
    double a = 1.0;
    int n;
    int main(){
    	scanf("%d",&n);
    	while(n--){
    		a/=3;
    		a*=2;
    	}
    	printf("%.6lf",a);
        return 0;
    }
    
    • 1

    Information

    ID
    698
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    10
    Tags
    (None)
    # Submissions
    5
    Accepted
    2
    Uploaded By