結果

問題 No.202 1円玉投げ
ユーザー hogeover30hogeover30
提出日時 2015-05-16 12:57:20
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 1,193 ms
コンパイル使用メモリ 149,140 KB
実行使用メモリ 8,036 KB
最終ジャッジ日時 2023-08-23 22:55:19
合計ジャッジ時間 8,089 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 204 ms
8,036 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 WA -
testcase_05 AC 7 ms
4,380 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 2 ms
4,380 KB
testcase_24 WA -
testcase_25 AC 2 ms
4,380 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 2 ms
4,380 KB
testcase_31 AC 2 ms
4,376 KB
testcase_32 AC 2 ms
4,376 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
 #import<bits/stdc++.h>
  ^~~~~~
main.cpp:2:44: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
 using namespace std;int s,t,x,y,z=1e5;main(){set<int>a;for(cin>>x;cin>>x>>y;)for(auto i=a.lower_bound(x*z-2e6),j=a.upper_bound(x*z+2e6);i==j?a.insert(x*z+y),0:s*(s=x-*i/z)+t*(t=y-*i%z)>401;++i);cout<<a.size();}
                                            ^

ソースコード

diff #

#import<bits/stdc++.h>
using namespace std;int s,t,x,y,z=1e5;main(){set<int>a;for(cin>>x;cin>>x>>y;)for(auto i=a.lower_bound(x*z-2e6),j=a.upper_bound(x*z+2e6);i==j?a.insert(x*z+y),0:s*(s=x-*i/z)+t*(t=y-*i%z)>401;++i);cout<<a.size();}
0