結果

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

テストケース

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

ソースコード

diff #

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