結果

問題 No.202 1円玉投げ
ユーザー cielciel
提出日時 2015-05-03 23:50:22
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 2,246 ms / 5,000 ms
コード長 413 bytes
コンパイル時間 759 ms
コンパイル使用メモリ 42,332 KB
実行使用メモリ 7,744 KB
最終ジャッジ日時 2023-08-23 21:39:42
合計ジャッジ時間 12,625 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 591 ms
7,740 KB
testcase_01 AC 165 ms
7,688 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 5 ms
4,380 KB
testcase_06 AC 233 ms
6,500 KB
testcase_07 AC 286 ms
6,836 KB
testcase_08 AC 286 ms
6,844 KB
testcase_09 AC 99 ms
5,284 KB
testcase_10 AC 24 ms
4,376 KB
testcase_11 AC 70 ms
4,952 KB
testcase_12 AC 73 ms
4,900 KB
testcase_13 AC 27 ms
4,376 KB
testcase_14 AC 7 ms
4,376 KB
testcase_15 AC 93 ms
5,152 KB
testcase_16 AC 97 ms
7,680 KB
testcase_17 AC 1,329 ms
7,744 KB
testcase_18 AC 1,343 ms
7,732 KB
testcase_19 AC 82 ms
5,104 KB
testcase_20 AC 184 ms
6,104 KB
testcase_21 AC 80 ms
5,124 KB
testcase_22 AC 2 ms
4,376 KB
testcase_23 AC 2 ms
4,376 KB
testcase_24 AC 1 ms
4,384 KB
testcase_25 AC 2 ms
4,376 KB
testcase_26 AC 5 ms
4,376 KB
testcase_27 AC 4 ms
4,380 KB
testcase_28 AC 2 ms
4,380 KB
testcase_29 AC 1 ms
4,376 KB
testcase_30 AC 2 ms
4,380 KB
testcase_31 AC 2 ms
4,380 KB
testcase_32 AC 2 ms
4,376 KB
testcase_33 AC 2 ms
4,380 KB
testcase_34 AC 3 ms
4,380 KB
testcase_35 AC 2,246 ms
7,724 KB
testcase_36 AC 195 ms
7,680 KB
testcase_37 AC 315 ms
7,048 KB
testcase_38 AC 2,184 ms
7,724 KB
testcase_39 AC 2 ms
4,376 KB
testcase_40 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <set>
#include <cstdio>
using namespace std;
typedef pair<int,int> pii;

int main(){
	set<pii>se;
	int N;
	for(scanf("%d",&N);N--;){
		int x,y;
		scanf("%d%d",&x,&y);
		pii A={x-20,0},B={x+20,1<<30};
		auto a=se.lower_bound(A),b=se.upper_bound(B);
		for(;a!=b;++a){
			if((a->first-x)*(a->first-x) + (a->second-y)*(a->second-y) < 400)break;
		}
		if(a==b)se.insert({x,y});
	}
	printf("%d\n",se.size());
}
0