結果

問題 No.3031 (物理学)長距離相互作用
ユーザー tailstails
提出日時 2018-02-28 23:19:41
言語 Perl
(5.38.2)
結果
AC  
実行時間 6 ms / 10,000 ms
コード長 189 bytes
コンパイル時間 862 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 5,324 KB
最終ジャッジ日時 2023-08-26 19:38:13
合計ジャッジ時間 1,434 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
5,116 KB
testcase_01 AC 6 ms
5,324 KB
testcase_02 AC 6 ms
5,196 KB
testcase_03 AC 6 ms
5,284 KB
testcase_04 AC 6 ms
5,084 KB
testcase_05 AC 6 ms
5,304 KB
testcase_06 AC 5 ms
5,088 KB
testcase_07 AC 6 ms
5,112 KB
testcase_08 AC 6 ms
5,160 KB
testcase_09 AC 6 ms
5,068 KB
testcase_10 AC 6 ms
5,172 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Name "main::l" used only once: possible typo at Main.pl line 2.
Name "main::p" used only once: possible typo at Main.pl line 2.
Name "main::n" used only once: possible typo at Main.pl line 2.
Name "main::i" used only once: possible typo at Main.pl line 2.
Name "main::j" used only once: possible typo at Main.pl line 2.
Name "main::m" used only once: possible typo at Main.pl line 2.
Name "main::k" used only once: possible typo at Main.pl line 2.
Name "main::o" used only once: possible typo at Main.pl line 2.
Main.pl syntax OK

ソースコード

diff #

($a,$b,$c,$d,$e,$f,$g,$h)=glob<>;
($i,$j,$k,$l,$m,$n,$o,$p)=glob<>;

$A=-2.32454;
$H=$A+2.03536413369771;
$B=0;
$D=$B-0.486101763751084;

print 
+$A*$a
+$B*($b+$c+$e)
+$D*($d+$f+$g)
+$H*$h
0