結果

問題 No.1052 電子機器X
ユーザー futago0118futago0118
提出日時 2020-05-16 21:09:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
MLE  
実行時間 -
コード長 175 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 11,756 KB
実行使用メモリ 528,652 KB
最終ジャッジ日時 2023-10-24 01:55:51
合計ジャッジ時間 2,865 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 MLE -
testcase_01 AC 29 ms
10,104 KB
testcase_02 AC 28 ms
10,104 KB
testcase_03 MLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())

N_list = [False for x in range(N)]
#print(N_list)
k = K
while abs(k) <= K :
    #print(k)
    N_list[k%N] = True
    k -= 2

print(sum(N_list))
0