ural 1869
来源:互联网 发布:linux vim 保存退出 编辑:程序博客网 时间:2024/04/29 03:00
简单题 ~~
#include <cstdio>#include <cstring>#include <iostream>using namespace std;int a[110][110], _max;void cood(int n){ int sum = 0; for(int i = 1; i <= n; i ++) { for(int j = 1; j < i; j ++) sum -= a[j][i]; for(int j = i+1; j <= n; j ++) { sum += a[i][j]; } _max = max(_max, sum); }}void res(int n){ for(int i = 1; i <= n; i ++) for(int j = i+1; j <= n; j ++) { int tem = a[i][j]; a[i][j] = a[j][i]; a[j][i] = tem; }}int main(){ int n; scanf("%d", &n); _max = 0; for(int i = 1; i <= n; i ++) for(int j = 1; j <= n; j ++) scanf("%d",&a[i][j]); cood(n); res(n); cood(n); printf("%d\n", _max%36 == 0 ? _max/36:_max/36+1); return 0;}
- ural 1869
- URAL
- 【ural】
- URAL
- URAL
- URAL
- URAL
- URAL
- URAL
- URAL
- URAL
- URAL
- URAL
- URAL
- URAL
- URAL
- URAL
- URAL
- 大并发处理解决方案
- java快捷键
- ZOJ 1274 Getting Chorded(模拟题)
- php const和define的区别(php类中如何定义常量)
- android多屏幕适配相关知识和官方翻译文档
- ural 1869
- servlet简介
- Spring MVC 简单入门
- hdu1087Super Jumping! Jumping! Jumping!
- Digital Roots
- 基于erlang的简单Web服务器实现
- CCMenuItemSprite 换按钮图片用initWithNormalSprite
- sqlite3 编译安装及快速入门 [2013-11-30更新]
- 基于centos4.3的linux发行版制作过程