結果

問題 No.398 ハーフパイプ(2)
ユーザー simansiman
提出日時 2022-01-06 03:56:12
言語 Ruby
(3.3.0)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 2,133 bytes
コンパイル時間 432 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-04-24 09:30:49
合計ジャッジ時間 2,533 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
12,160 KB
testcase_01 AC 75 ms
12,288 KB
testcase_02 AC 74 ms
12,160 KB
testcase_03 AC 75 ms
12,288 KB
testcase_04 AC 72 ms
12,160 KB
testcase_05 AC 73 ms
12,416 KB
testcase_06 AC 75 ms
12,288 KB
testcase_07 AC 72 ms
12,160 KB
testcase_08 AC 73 ms
12,160 KB
testcase_09 AC 79 ms
12,288 KB
testcase_10 AC 73 ms
12,160 KB
testcase_11 AC 74 ms
12,032 KB
testcase_12 AC 75 ms
12,032 KB
testcase_13 AC 73 ms
12,160 KB
testcase_14 AC 75 ms
12,160 KB
testcase_15 AC 74 ms
12,160 KB
testcase_16 AC 72 ms
12,288 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

X = gets.to_f
idx = X / 0.25
idx = 400 - idx if 200 < idx

puts DATA.readlines[idx]

__END__
601
2985
8915
20700
41796
76170
128305
203145
306731
445530
626460
856830
1144981
1499595
1929755
2444850
3055236
3771540
4604725
5565975
6667391
7921260
9340140
10936740
12724621
14717445
16929095
19373520
22065456
25019670
28251085
31774605
35605871
39760470
44254080
49102290
54321361
59927415
65936615
72364950
79229016
86545200
94329865
102599115
111369611
120657720
130479720
140851560
151789681
163310145
175428875
188161380
201523596
215531010
230198905
245542065
261575651
278314290
295772340
313963590
332902141
352601475
373074755
394334490
416393436
439263660
462956845
487483935
512856071
539083620
566176500
594143820
622994821
652737885
683380895
714930840
747394776
780778830
815088565
850328565
886503431
923616750
961671480
1000669530
1040612761
1081501935
1123337135
1166117310
1209841296
1254506760
1300110625
1346648595
1394116211
1442507760
1491816720
1542035280
1593155401
1645167705
1698061955
1751826540
1806449556
1861917705
1918216810
1975331310
2033245421
2091942030
2151403230
2211609825
2272542496
2334180660
2396503055
2459487210
2523110616
2587349595
2652179890
2717576100
2783512901
2849963880
2916902130
2984299695
3052128796
3120360630
3188966015
3257914800
3327177096
3396722085
3466518670
3536534850
3606739001
3677098650
3747581130
3818152965
3888781156
3959431920
4030071395
4100664990
4171178676
4241577735
4311827470
4381892520
4451738201
4521329220
4590630390
4659605955
4728220936
4796439810
4864227275
4931547540
4998365676
5064646305
5130354370
5195454390
5259911861
5323691910
5386760070
5449081545
5510622616
5571349260
5631227975
5690225010
5748307776
5805443475
5861599930
5916744780
5970846941
6023875200
6075799050
6126587895
6176212516
6224643630
6271852775
6317811480
6362492736
6405869565
6447915910
6488605770
6527914721
6565818450
6602293650
6637317165
6670867516
6702923400
6733464635
6762471270
6789925116
6815808255
6840103990
6862795920
6883869521
6903310620
6921106350
6937244235
6951713776
6964504890
6975608915
6985017660
6992724996
6998725305
7003014490
7005588990
7006447421
0