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
import numpy as np | |
import timeit | |
A = np.array( | |
[[6, 0, 0, 0, 0, 0, 0, 5, 1], | |
[0, 0, 0, 3, 0, 0, 9, 0, 0], | |
[0, 0, 8, 0, 0, 0, 0, 0, 0], | |
[0, 4, 0, 7, 0, 0, 5, 0, 0], | |
[0, 0, 0, 0, 9, 0, 8, 0, 0], | |
[0, 0, 1, 8, 5, 0, 0, 3, 7], |
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> | |
#include <windows.h> // Windows sleep | |
#define TABLE_SIZE 3 | |
typedef enum {TYPE_INT, TYPE_LONG, TYPE_CHAR} dataType; | |
typedef struct { | |
void *data; | |
dataType type; |
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 <cstdlib> | |
#include <iostream> | |
#include <fstream> | |
#include <sstream> | |
#include <conio.h> | |
#define IN "A-large-practice.in" | |
#define OUT "A-large-practice.out" | |
using namespace std; |
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 <conio.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
char * stringToUpper(char * str) { | |
for(int i = 0; i < (int)strlen(str); i++) |
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
//--------------------------------------------------------------------------- | |
// Prüfungsaufgabe Sommer 2010 | |
//--------------------------------------------------------------------------- | |
#include <stdio.h> | |
#include <conio.h> | |
#include <iostream> | |
using namespace std; |