結果

問題 No.1935 Water Simulation
ユーザー tailstails
提出日時 2022-05-13 22:36:28
言語 Perl
(5.38.2)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 178 bytes
コンパイル時間 330 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 5,368 KB
最終ジャッジ日時 2023-09-29 10:02:23
合計ジャッジ時間 1,693 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 6 ms
5,160 KB
testcase_03 AC 6 ms
5,180 KB
testcase_04 AC 6 ms
5,108 KB
testcase_05 AC 6 ms
5,036 KB
testcase_06 AC 5 ms
5,040 KB
testcase_07 AC 6 ms
5,056 KB
testcase_08 AC 6 ms
5,096 KB
testcase_09 AC 6 ms
5,132 KB
testcase_10 AC 6 ms
5,068 KB
testcase_11 AC 6 ms
5,144 KB
testcase_12 AC 6 ms
5,196 KB
testcase_13 AC 6 ms
5,096 KB
testcase_14 AC 6 ms
5,112 KB
testcase_15 AC 6 ms
5,276 KB
testcase_16 AC 6 ms
5,096 KB
testcase_17 AC 6 ms
5,088 KB
testcase_18 AC 6 ms
5,052 KB
testcase_19 AC 6 ms
5,052 KB
testcase_20 AC 6 ms
5,144 KB
testcase_21 AC 6 ms
5,200 KB
testcase_22 AC 6 ms
5,332 KB
testcase_23 AC 6 ms
5,164 KB
testcase_24 AC 6 ms
5,048 KB
testcase_25 AC 6 ms
5,320 KB
testcase_26 AC 6 ms
5,196 KB
testcase_27 AC 6 ms
5,300 KB
testcase_28 AC 6 ms
5,196 KB
testcase_29 AC 6 ms
5,152 KB
testcase_30 AC 6 ms
5,092 KB
testcase_31 AC 6 ms
5,368 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

(@v[0..3],$n)=glob<>;
@a=($v[0],0,0,0);
$n=$n%4+32if$n>=32;
for$i(0..$n-1){
	*x=\$a[$i+1&3];
	*y=\$a[$i&3];
	*z=\$v[$i+1&3];
	$x+=$y,$y=0;
	$y=$x-$z,$x=$z if $x>$z;
}
print"@a";
0