📄 foodlink.cpp
字号:
#include<iostream>
using namespace std;
#define MAX_OF_ANIMAL 50001
int main()
{
int number_of_amimal, number_of_words;
int animal[MAX_OF_ANIMAL] = {0};
int type, x, y;
int number_of_lie = 0;
cin>>number_of_amimal>>number_of_words;
for(int i = 0; i < number_of_words; i++)
{
cin>>type>>x>>y;
if(x > number_of_animal || y > number_of_animal)
{
number_of_lie++;
continue;
}
if(type == 2 && x == y)
{
number_of_lie++;
continue;
}
if(x != y)
{
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -