Coderforces George and Accommodation
来源:互联网 发布:java面试题大全带答案 编辑:程序博客网 时间:2024/06/02 04:28
http://codeforces.com/problemset/problem/467/A
import java.util.Scanner;public class George_and_Accommodation {public static void main(String[] args) {Scanner scanner = new Scanner(System.in);int n = scanner.nextInt();int count = 0;for(int i = 0; i < n; i++) {int p = scanner.nextInt();int q = scanner.nextInt();if((q-p) >= 2) count++;}System.out.println(count);}}
阅读全文
0 0
- Coderforces George and Accommodation
- cf467A George and Accommodation
- A. George and Accommodation
- 467A. George and Accommodation
- 467A - George and Accommodation
- Codeforces 467A George and Accommodation
- Codeforces 467A George and Accommodation(水题)
- CF 467A George and Accommodation
- Problem-467A-Codeforces-George and Accommodation
- CF 467A-George and Accommodation
- codeforces 467A George and Accommodation
- Codeforces Round #267 (Div. 2) A. George and Accommodation
- codeforces 467A(George and Accommodation) Java
- CodeForces 467 A.George and Accommodation(水~)
- Codeforces刷题之路——467A George and Accommodation
- Coderforces Petya and Strings
- Coderforces Soldier and Bananas
- George and Sleep
- JAVA AES128
- I2C调试
- JAVA MD5
- codeforces 379G. New Year Cactus
- 爬虫生活实录之---百度文库文档破解
- Coderforces George and Accommodation
- 简单图片浏览器
- QQ被封永久解封方法来了 需要的上
- C语言基础重点总结
- JAVA-22-JDBC批处理、获取自增长值、处理大数据文件、数据库事物
- python面向对象设计
- centos下boost库的安装
- 【视频开发】 ffmpeg支持的硬解码接口
- Coderforces Soldier and Bananas