Language: C++

#include<iostream>
#include<cmath>
using namespace std;
int main(){
	int n,cx=0,cy=0,ct=0;
	cin>>n;
	for(int i=0;i<n;i++){
		int t,x,y,v,tt;
		cin>>t>>x>>y;
		v=abs(cx-x)+abs(cy-y);
		tt=abs(ct-t);
		if(tt<v||(tt-v)%2==1){
			cout<<"No";
			return 0;
		}
		cx=x;
		cy=y;
		ct=t;
	}
	cout<<"Yes";
	return 0;
}
吴惕若妈妈(1072415993)  18:00:01
ABC 086 C 
王祉媛妈妈(18375326)  18:00:12

李昕悦(1195557376)  18:00:43
#include <bits/stdc++.h>
using namespace std;
int main()
{
	int a=0,b=0,c,sb=1,f=0;
	char ch;
	ch=getchar();
	while(isdigit(ch))
	{
		a=a*10+(ch-48);
		ch=getchar();
	}
	while(!isdigit(ch))
	{
		ch=getchar();
	}
	while(isdigit(ch))
	{
		sb*=10;
		b=b*10+(ch-48);
		ch=getchar();
	}
	c=a*sb+b;
	for(int i=1;i<=320;i++)
	{
		if(i*i==c)
		{
			f=1;
		}
	}
	if(f)
	{
		cout<<"Yes";
	}
	else
	{
		cout<<"No";
	}
	return 0;
}
温棣丞(2227937337)  18:00:43
#include<bits/stdc++.h>
using namespace std;
 
int tt,tx,ty,x,y,t,f;
int n;
 
int main()
{
	cin >> n;
	for(int i=0;i<n;i++)
	{
		cin >> tt >> tx >> ty;
		if((((tt-t)-(abs(tx-x)+abs(ty-y)))%2!=0||abs(tx-x)+abs(ty-y)>tt-t))
		{
			f=1;
		}
		t=tt,x=tx,y=ty;
	}
	if(f) cout << "No";
	else cout << "Yes";
	return 0;
}
温棣丞(2227937337)  18:01:02
atcoder c#include<bits/stdc++.h>
using namespace std;
 
int tt,tx,ty,x,y,t,f;
int n;
 
int main()
{
	cin >> n;
	for(int i=0;i<n;i++)
	{
		cin >> tt >> tx >> ty;
		if((((tt-t)-(abs(tx-x)+abs(ty-y)))%2!=0||abs(tx-x)+abs(ty-y)>tt-t))
		{
			f=1;
		}
		t=tt,x=tx,y=ty;
	}
	if(f) cout << "No";
	else cout << "Yes";
	return 0;
}


Compiler output:
a.cc:24:5: error: invalid digit "8" in octal constant
   24 | ABC 086 C
      |     ^~~
a.cc:92:10: error: stray '#' in program
   92 | atcoder c#include<bits/stdc++.h>
      |          ^
a.cc:23:11: error: expected constructor, destructor, or type conversion before '(' token
   23 | 吴惕若妈妈(1072415993)  18:00:01
      |           ^
a.cc:30:5: error: redefinition of 'int main()'
   30 | int main()
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
a.cc:68:7: error: expected constructor, destructor, or type conversion before '(' token
   68 | 温棣丞(2227937337)  18:00:43
      |       ^
a.cc:75:5: error: redefinition of 'int main()'
   75 | int main()
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
a.cc:91:7: error: expected constructor, destructor, or type conversion before '(' token
   91 | 温棣丞(2227937337)  18:01:02
      |       ^
a.cc:95:5: error: redefinition of 'int tt'
   95 | int tt,tx,ty,x,y,t,f;
      |     ^~
a.cc:72:5: note: 'int tt' previously declared here
   72 | int tt,tx,ty,x,y,t,f;
      |     ^~
a.cc:95:8: error: redefinition of 'int tx'
   95 | int tt,tx,ty,x,y,t,f;
      |        ^~
a.cc:72:8: note: 'int tx' previously declared here
   72 | int tt,tx,ty,x,y,t,f;
      |        ^~
a.cc:95:11: error: redefinition of 'int ty'
   95 | int tt,tx,ty,x,y,t,f;
      |           ^~
a.cc:72:11: note: 'int ty' previously declared here
   72 | int tt,tx,ty,x,y,t,f;
      |           ^~
a.cc:95:14: error: redefinition of 'int x'
   95 | int tt,tx,ty,x,y,t,f;
      |              ^
a.cc:72:14: note: 'int x' previously declared here
   72 | int tt,tx,ty,x,y,t,f;
      |              ^
a.cc:95:16: error: redefinition of 'int y'
   95 | int tt,tx,ty,x,y,t,f;
      |                ^
a.cc:72:16: note: 'int y' previously declared here
   72 | int tt,tx,ty,x,y,t,f;
      |                ^
a.cc:95:18: error: redefinition of 'int t'
   95 | int tt,tx,ty,x,y,t,f;
      |                  ^
a.cc:72:18: note: 'int t' previously declared here
   72 | int tt,tx,ty,x,y,t,f;
      |                  ^
a.cc:95:20: error: redefinition of 'int f'
   95 | int tt,tx,ty,x,y,t,f;
      |                    ^
a.cc:72:20: note: 'int f' previously declared here
   72 | int tt,tx,ty,x,y,t,f;
      |                    ^
a.cc:96:5: error: redefinition of 'int n'
   96 | int n;
      |     ^
a.cc:73:5: note: 'int n' previously declared here
   73 | int n;
      |     ^
a.cc:98:5: error: redefinition of 'int main()'
   98 | int main()
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~