uva 10161 - Ant on a Chessboard
摘要:
这题很简单,记得输出是x y不是(x,y),还wa了一次 1 #include 2 #include 3 using namespace std; 4 int main(){ 5 int n; 6 while(cin>>n){ 7 if(n==0) 8 break; 9 if(n==1){10 coutnth*nth)?(nth+1):nth;15 int flag=nth%2;16 int temp=n-(nth-1)*(nth-1)-nth;17 ... 阅读全文
posted @ 2014-01-02 21:46 云在心 阅读(111) 评论(0) 推荐(0)
浙公网安备 33010602011771号