結果

問題 No.202 1円玉投げ
ユーザー PulmnPulmn
提出日時 2018-07-20 17:53:34
言語 C++11
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 971 bytes
コンパイル時間 2,266 ms
コンパイル使用メモリ 149,584 KB
実行使用メモリ 10,544 KB
最終ジャッジ日時 2023-08-23 23:52:47
合計ジャッジ時間 36,141 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3,351 ms
8,328 KB
testcase_01 AC 3,268 ms
7,972 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 127 ms
4,376 KB
testcase_06 AC 2,826 ms
6,780 KB
testcase_07 AC 3,219 ms
7,268 KB
testcase_08 AC 3,241 ms
7,248 KB
testcase_09 AC 1,623 ms
5,576 KB
testcase_10 AC 588 ms
4,612 KB
testcase_11 AC 1,291 ms
5,196 KB
testcase_12 AC 1,347 ms
5,400 KB
testcase_13 AC 666 ms
4,564 KB
testcase_14 AC 157 ms
4,380 KB
testcase_15 AC 1,568 ms
5,572 KB
testcase_16 TLE -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
testcase_36 -- -
testcase_37 -- -
testcase_38 -- -
testcase_39 -- -
testcase_40 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define syosu(x) fixed<<setprecision(x)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> P;
typedef pair<double,double> pdd;
typedef pair<ll,ll> pll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<double> vd;
typedef vector<vd> vvd;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<string> vs;
typedef vector<P> vp;
typedef vector<vp> vvp;
typedef vector<pll> vpll;
typedef pair<int,P> pip;
typedef vector<pip> vip;
const int inf=1<<30;
const ll INF=1ll<<60;
const double pi=acos(-1);
const double eps=1e-8;
const ll mod=1e9+7;
const int dx[4]={-1,0,1,0},dy[4]={0,-1,0,1};

int n;

int main(){
	cin>>n;
	set<P> st;
	for(int i=0;i<n;i++){
		int x,y;
		cin>>x>>y;
		bool B=1;
		for(int X=x-20;X<=x+20;X++) for(int Y=y-20;Y<=y+20;Y++){
			int d=(x-X)*(x-X)+(y-Y)*(y-Y);
			if(d<400&&st.find({X,Y})!=st.end()) B=0;
		}
		if(B) st.insert({x,y});
	}
	cout<<st.size()<<endl;
}
0