結果

問題 No.202 1円玉投げ
ユーザー hogeover30hogeover30
提出日時 2015-05-16 04:36:58
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 3,363 ms / 5,000 ms
コード長 260 bytes
コンパイル時間 1,127 ms
コンパイル使用メモリ 150,068 KB
実行使用メモリ 8,188 KB
最終ジャッジ日時 2023-08-23 22:53:37
合計ジャッジ時間 19,173 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 927 ms
8,188 KB
testcase_01 AC 315 ms
8,060 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 1 ms
4,376 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 8 ms
4,376 KB
testcase_06 AC 317 ms
6,800 KB
testcase_07 AC 383 ms
7,220 KB
testcase_08 AC 389 ms
7,184 KB
testcase_09 AC 143 ms
5,624 KB
testcase_10 AC 36 ms
4,404 KB
testcase_11 AC 101 ms
5,432 KB
testcase_12 AC 104 ms
5,296 KB
testcase_13 AC 42 ms
4,720 KB
testcase_14 AC 9 ms
4,376 KB
testcase_15 AC 135 ms
5,680 KB
testcase_16 AC 173 ms
8,052 KB
testcase_17 AC 2,151 ms
8,056 KB
testcase_18 AC 2,149 ms
8,188 KB
testcase_19 AC 120 ms
5,488 KB
testcase_20 AC 256 ms
6,556 KB
testcase_21 AC 114 ms
5,396 KB
testcase_22 AC 2 ms
4,380 KB
testcase_23 AC 2 ms
4,376 KB
testcase_24 AC 2 ms
4,376 KB
testcase_25 AC 2 ms
4,380 KB
testcase_26 AC 8 ms
4,376 KB
testcase_27 AC 8 ms
4,380 KB
testcase_28 AC 2 ms
4,376 KB
testcase_29 AC 2 ms
4,376 KB
testcase_30 AC 2 ms
4,376 KB
testcase_31 AC 2 ms
4,376 KB
testcase_32 AC 3 ms
4,376 KB
testcase_33 AC 2 ms
4,376 KB
testcase_34 AC 3 ms
4,376 KB
testcase_35 AC 3,330 ms
8,040 KB
testcase_36 AC 389 ms
8,092 KB
testcase_37 AC 434 ms
7,424 KB
testcase_38 AC 3,363 ms
8,068 KB
testcase_39 AC 1 ms
4,380 KB
testcase_40 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
 #import<bits/stdc++.h>
  ^~~~~~
main.cpp:2:34: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
 using namespace std;int x,y;main(){set<pair<int,int>>a;auto i=end(a),j=i;for(cin>>x;cin>>x>>y;i==j?a.emplace(x,y),0:0)for(i=a.lower_bound({x-20,0}),j=a.upper_bound({x+20,2e9});i!=j&&hypot(x-i->first,y-i->second)>=20;++i);cout<<a.size();}
                                  ^

ソースコード

diff #

#import<bits/stdc++.h>
using namespace std;int x,y;main(){set<pair<int,int>>a;auto i=end(a),j=i;for(cin>>x;cin>>x>>y;i==j?a.emplace(x,y),0:0)for(i=a.lower_bound({x-20,0}),j=a.upper_bound({x+20,2e9});i!=j&&hypot(x-i->first,y-i->second)>=20;++i);cout<<a.size();}
0