結果

問題 No.33 アメーバがたくさん
ユーザー %20%20
提出日時 2017-06-12 04:02:11
言語 Perl
(5.38.2)
結果
AC  
実行時間 9 ms / 5,000 ms
コード長 148 bytes
コンパイル時間 57 ms
コンパイル使用メモリ 6,172 KB
実行使用メモリ 6,264 KB
最終ジャッジ日時 2023-10-24 21:26:20
合計ジャッジ時間 713 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
6,260 KB
testcase_01 AC 8 ms
6,264 KB
testcase_02 AC 8 ms
6,264 KB
testcase_03 AC 9 ms
6,264 KB
testcase_04 AC 9 ms
6,260 KB
testcase_05 AC 8 ms
6,260 KB
testcase_06 AC 7 ms
6,264 KB
testcase_07 AC 8 ms
6,264 KB
testcase_08 AC 7 ms
6,264 KB
testcase_09 AC 7 ms
6,264 KB
testcase_10 AC 7 ms
6,260 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Possible precedence problem on bitwise | operator at Main.pl line 4.
Name "main::N" used only once: possible typo at Main.pl line 1.
Main.pl syntax OK

ソースコード

diff #

($N,$D,$T)=glob<>;
	$\+=
	($==$_/$D)>$%+2*$T | $_%$D+$.
	?	2*$T+1
	:	$=-$%,
	$%=$=,
	$.=0-$_%$D
for sort{$a%$D-$b%$D||$a-$b}map$_+1e9,glob<>;
print
0