結果

問題 No.202 1円玉投げ
ユーザー hogeover30hogeover30
提出日時 2015-05-16 12:57:54
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 1,819 ms / 5,000 ms
コード長 233 bytes
コンパイル時間 1,234 ms
コンパイル使用メモリ 149,268 KB
実行使用メモリ 8,204 KB
最終ジャッジ日時 2023-08-23 22:55:46
合計ジャッジ時間 13,188 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 481 ms
8,040 KB
testcase_01 AC 220 ms
8,004 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 8 ms
4,380 KB
testcase_06 AC 257 ms
6,856 KB
testcase_07 AC 313 ms
7,164 KB
testcase_08 AC 321 ms
7,196 KB
testcase_09 AC 116 ms
5,608 KB
testcase_10 AC 30 ms
4,376 KB
testcase_11 AC 82 ms
5,312 KB
testcase_12 AC 86 ms
5,280 KB
testcase_13 AC 35 ms
4,504 KB
testcase_14 AC 9 ms
4,380 KB
testcase_15 AC 109 ms
5,532 KB
testcase_16 AC 141 ms
8,144 KB
testcase_17 AC 1,290 ms
8,040 KB
testcase_18 AC 1,295 ms
8,036 KB
testcase_19 AC 97 ms
5,424 KB
testcase_20 AC 219 ms
6,528 KB
testcase_21 AC 95 ms
5,556 KB
testcase_22 AC 2 ms
4,376 KB
testcase_23 AC 2 ms
4,380 KB
testcase_24 AC 2 ms
4,376 KB
testcase_25 AC 2 ms
4,380 KB
testcase_26 AC 6 ms
4,380 KB
testcase_27 AC 6 ms
4,376 KB
testcase_28 AC 2 ms
4,380 KB
testcase_29 AC 2 ms
4,380 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,380 KB
testcase_34 AC 3 ms
4,380 KB
testcase_35 AC 1,754 ms
8,036 KB
testcase_36 AC 214 ms
8,100 KB
testcase_37 AC 370 ms
7,400 KB
testcase_38 AC 1,819 ms
8,204 KB
testcase_39 AC 2 ms
4,380 KB
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)>399;++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)>399;++i);cout<<a.size();}
0