PTA-龟兔赛跑(C语言)

#include<stdio.h> int main() { int t=0,t1=0,t2=0,W=0,T=0; scanf("%d",&t); while(t1<t&&t>0){ if(t1%10==0&&T>W){ t2=t1+30; while(t1<t2&&t1<t){ W+=3; t1++; } }el
相关文章
相关标签/搜索