Coderforces Beautiful Matrix
来源:互联网 发布:南方大数据300a 编辑:程序博客网 时间:2024/06/14 20:54
http://codeforces.com/problemset/problem/263/A
import java.util.Scanner;public class Beautiful_Matrix {public static void main(String[] args) {Scanner scanner = new Scanner(System.in);for(int i = 0; i < 5; i++) {for(int j = 0; j < 5; j++) {int k = scanner.nextInt();if(k == 1) {System.out.println(Math.abs(i-2) + Math.abs(j-2));}}}}}
阅读全文
0 0
- Coderforces Beautiful Matrix
- 【COderForces】OR in Matrix
- A. Beautiful Matrix
- 263A - Beautiful Matrix
- CodeForces-263A-Beautiful Matrix
- CF 236 A Beautiful Matrix
- codeforces 263A Beautiful Matrix
- Problem-263A-Codeforces- Beautiful Matrix
- codeforces 263A(Beautiful Matrix) Java
- CodeForces 263 A.Beautiful Matrix(水~)
- (Coderforces 873C)C. Strange Game On Matrix 贪心+模拟
- Beautiful
- Coderforces集锦
- Coderforces Round #
- Coderforces Next_Round
- Coderforces Team
- Coderforces Bit++
- Coderforces Football
- 学习淘淘商城 第一百课(修改购物车商品数量)
- win7系统中3Dmax不能运行的原因分析
- file-like的鸭子类型StringIO,GzipFile和socket
- 航电OJ1000
- ubuntu安装lantern后The proxy server is refusing connections
- Coderforces Beautiful Matrix
- NVIDIA Jetson TX2 通过vnc 桌面控制
- NUCLEO-L496ZG防火墙
- 视频直播前端方案
- ZOJ 1067
- BZOJ 1951: [Sdoi2010]古代猪文
- TensorFlow 1.0 新增功能和部分改善
- Unity数据库的学习笔记
- 阿里云ECS服务器部署JavaWeb教程