2013年1月19日

【Codeforces】【161Div2】

摘要: 【题目来源】http://www.codeforces.com/contest/263【A. Beautiful Matrix】【解析】模拟即可。按照题目的意思,找到1所在的位置(x, y),然后输出abs(x - 3) + abs(y - 3)。 1 #include <iostream> 2 #include <cmath> 3 4 using namespace std; 5 6 int X, Y; 7 8 int main() 9 {10 for (int i = 1; i <= 5; i ++)11 for (int j = 1, a; j <= 阅读全文

posted @ 2013-01-19 16:44 孤星ぁ紫辰 阅读(328) 评论(2) 推荐(0)

导航