結果

問題 No.540 格子点と経路
ユーザー tailstails
提出日時 2017-07-03 00:45:55
言語 Bash
(Bash 5.1.16)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 56 bytes
コンパイル時間 39 ms
コンパイル使用メモリ 5,328 KB
実行使用メモリ 4,960 KB
最終ジャッジ日時 2023-07-28 02:53:05
合計ジャッジ時間 1,259 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,960 KB
testcase_01 AC 3 ms
4,888 KB
testcase_02 AC 4 ms
4,732 KB
testcase_03 AC 4 ms
4,864 KB
testcase_04 AC 4 ms
4,800 KB
testcase_05 AC 4 ms
4,764 KB
testcase_06 AC 4 ms
4,824 KB
testcase_07 AC 3 ms
4,952 KB
testcase_08 AC 3 ms
4,888 KB
testcase_09 AC 3 ms
4,948 KB
testcase_10 AC 3 ms
4,868 KB
testcase_11 AC 3 ms
4,812 KB
testcase_12 AC 3 ms
4,876 KB
testcase_13 AC 4 ms
4,876 KB
testcase_14 AC 3 ms
4,800 KB
testcase_15 AC 3 ms
4,888 KB
testcase_16 AC 3 ms
4,892 KB
testcase_17 AC 4 ms
4,888 KB
testcase_18 AC 3 ms
4,920 KB
testcase_19 AC 3 ms
4,892 KB
testcase_20 AC 3 ms
4,780 KB
testcase_21 AC 3 ms
4,960 KB
testcase_22 AC 3 ms
4,948 KB
testcase_23 AC 4 ms
4,884 KB
testcase_24 AC 3 ms
4,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

read w h;echo $[~w*~h-(w&1?h&w>h?h:w:h&1|w<h?h:w+~h/~w)]
0