Sign in
or
Register
Courses
Textbook
Compiler
Contests
Topics
Courses
Algorithms
Bit Operations (Python)
Module:
Bit Operations (Python)
Problem
7
/13
Calculating the modulus of a number without using a conditional operator
Problem
Given a number x.
Calculate the absolute value of x without using a conditional operator.
Запрещенные операторы: if;abs;fabs;while;for
1000
ms
256 Mb
Rules for program design and list of errors in automatic problem checking
Teacher commentary