This file contains hidden or 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
from encodings.aliases import aliases | |
for a in aliases: | |
try: | |
print('ö'.encode('utf-8').decode(a), a) | |
except: | |
pass |
This file contains hidden or 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
:- use_module(library(clpfd)). | |
points(1, 25). | |
points(2, 18). | |
points(3, 15). | |
points(4, 12). | |
points(5, 10). | |
points(6, 8). | |
points(7, 6). | |
points(8, 4). |
This file contains hidden or 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
#include <stdio.h> | |
#define IS_DIGIT(C) ((C) >= '0' && (C) <= '9') | |
int main() | |
{ | |
int i = 0, n = 0; | |
char *s = "a!b+c(75"; // two digits, right? | |
while (s[i] != '\0') { |
NewerOlder