Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
103211 廖宸睿 22第n项的数 C++ Wrong Answer 1 MS 280 KB 470 2024-12-28 14:18:41

Tests(0/5):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; long long a(int x,int n,int t,int y){ int r; r=t/n; for(int i=1;i<=x;i++){ y*=r; } return y/r; } int main(){ long long x,n,t,y; cin>>x>>y>>n>>n>>t; cout<<a(x,n,t,y); return 0; }


Run Info:

------Input------
6 1 6 11 16
------Answer-----
26
------Your output-----
1