acm1.2

作者: wolfway_d0ff | 来源:发表于2018-12-07 00:00 被阅读0次

#include<iostream>

using namespace std;

int main()

{

int n, i, p;

int y = 0;

cin >> n;

for (int x = 1; x <= n; x++)

{

cin >> p >> i;

if (i >= p + 2)

y++;

}

cout << y << endl;

return 0;

}

房间人数比减已有人数

多两个及可加一

相关文章

  • acm1.2

    #include using namespace std; int main() { int n, i, p; i...

网友评论

      本文标题:acm1.2

      本文链接:https://www.haomeiwen.com/subject/otnwcqtx.html