結果

問題 No.1992 Tendon Walk
ユーザー FVRChanFVRChan
提出日時 2022-07-26 13:46:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 16 ms / 2,000 ms
コード長 241 bytes
コンパイル時間 622 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 7,936 KB
最終ジャッジ日時 2023-09-23 06:19:16
合計ジャッジ時間 1,224 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,924 KB
testcase_01 AC 16 ms
7,860 KB
testcase_02 AC 16 ms
7,880 KB
testcase_03 AC 16 ms
7,864 KB
testcase_04 AC 16 ms
7,816 KB
testcase_05 AC 16 ms
7,812 KB
testcase_06 AC 16 ms
7,936 KB
testcase_07 AC 16 ms
7,836 KB
testcase_08 AC 16 ms
7,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x = int(input())
a = [2, 2, -1, -1, 2, -1, -1]
a = [[2, 2, -1, -1, 2, -1, -1][i % 7] for i in range(100)]
b = [sum(a[0:i+1]) for i in range(100)]
c = [sum(list(map(abs, a[0:i+1]))) for i in range(100)]
x_index = b.index(x)
print(c[x_index])
0