⚠️ This is the old API and may not work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unsigned char* hexstr_to_char(const char* hexstr) | |
{ | |
size_t len = strlen(hexstr); | |
IF_ASSERT(len % 2 != 0) | |
return NULL; | |
size_t final_len = len / 2; | |
unsigned char* chrs = (unsigned char*)malloc((final_len+1) * sizeof(*chrs)); | |
for (size_t i=0, j=0; j<final_len; i+=2, j++) | |
chrs[j] = (hexstr[i] % 32 + 9) % 25 * 16 + (hexstr[i+1] % 32 + 9) % 25; | |
chrs[final_len] = '\0'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title>Font Antialiasing Test</title> | |
</head> | |
<body alink="#000088" link="#0000FF" vlink="#FF0000"> | |
<ul style="color: #000000; background: #ffffff;"> | |
<li style="-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;">This text uses grayscale antialiasing</li> | |
<li style="-webkit-font-smoothing: subpixel-antialiased; -moz-osx-font-smoothing: auto;">This text uses subpixel antialiasing if available (i.e. if "LCD font smoothing" is enabled in <i>Mac OS X</i> preferences)</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
public class AdditionUnderXOR { | |
static final int SS = 1000000; | |
enum Ore { | |
COAL(60005), | |
IRON(60006), |