Professional Documents
Culture Documents
S
S
S
0;
import "@openzeppelin/contracts/utils/Strings.sol";
import "hardhat/console.sol";
contract contract2 {
//FLAG START
string internal f1 = "UR";
string internal fI = "UB";
string internal fl = "RE";
string internal f2 = "JC{";
string internal f3 = Strings.toString((((200 - (250 / 2) - 7 - 20) / 2) -
17.5) - 1/2);
string internal f10 = Strings.toString(((((50 / 5) -50 +27 + 3 + 15 -18 +23 ) *
2) * 3) + 7);
string internal f1O = Strings.toString((2000 / 50 + 400 - 20 + 50 - 200) + (200
/ 100 + 50 - 100 + 60 - 1) + (200 * 100 - 134 - 256 - 289 ));
//FUNCTION APPEND
//FLAG PRINT
string internal s = append3(append(f1, f2, f3, f22, f5, f16, f7, f8, f2I, f2O,
f11), append2(f12, f13, f21, f15, f20));
function get_flag(uint8 _number) external {
unchecked{
uint8 _aux = _number + 1;
require(_aux == 0, "La operacion no es correcta");
}
console.log(s);
}