結果
| 問題 |
No.3048 Swing
|
| コンテスト | |
| ユーザー |
Users1012
|
| 提出日時 | 2025-03-09 19:57:17 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 278 bytes |
| コンパイル時間 | 612 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 18,844 KB |
| 最終ジャッジ日時 | 2025-03-09 19:57:22 |
| 合計ジャッジ時間 | 4,425 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 TLE * 1 -- * 55 |
ソースコード
import math
def input_split_line():
return list(map(int, input().split()))
def solve():
a, b = input_split_line()
Xim1 = a
for i in range(1,b+1):
if(Xim1 <= 0):
Xim1 += i
else:
Xim1 -= i
return Xim1
print(solve())
Users1012