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
相關文章
相關標籤/搜索