結果

問題 No.1593 Perfect Distance
ユーザー tailstails
提出日時 2021-07-15 12:11:33
言語 Bash
(Bash 5.1.16)
結果
TLE  
実行時間 -
コード長 68 bytes
コンパイル時間 118 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-17 17:50:50
合計ジャッジ時間 10,834 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 6 ms
4,376 KB
testcase_08 AC 16 ms
4,376 KB
testcase_09 AC 128 ms
4,376 KB
testcase_10 AC 405 ms
4,380 KB
testcase_11 AC 634 ms
4,380 KB
testcase_12 AC 1,086 ms
4,376 KB
testcase_13 AC 1,166 ms
4,380 KB
testcase_14 AC 1,357 ms
4,376 KB
testcase_15 TLE -
testcase_16 TLE -
testcase_17 AC 2 ms
4,380 KB
testcase_18 AC 2 ms
4,376 KB
testcase_19 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

read n
for((n*=y=n;d=x*x+y*y-n,z+=!d,d>0?--y:++x;)){ :;}
echo $[z-1]
0