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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define NMAX 1002 | |
void invert(int*); // Инвертирует число | |
void sum(int*, int*); // Суммирует два числа | |
int max(int, int); // Возвращает максимальное число | |
int* divide (int*, int); |
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
#include <stdio.h> | |
#include <limits.h> | |
#include <malloc.h> | |
#define side 200 | |
typedef struct coordinates { | |
int i; | |
int j; | |
} coord; |
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
#include <stdio.h> | |
#include <malloc.h> | |
#include <limits.h> | |
#define side 200 | |
#define h 0 | |
#define w 1 | |
typedef struct coordinates { | |
int i; |
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
#include <stdio.h> | |
#include <limits.h> | |
int upOrder(int n) { | |
int k; | |
int f = n % 10; | |
n /= 10; | |
while (n > 0) { | |
k = n % 10; |
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
# == Schema Information | |
# | |
# Table name: users | |
# | |
# id :integer not null, primary key | |
# name :string(255) | |
# email :string(255) | |
# created_at :datetime | |
# updated_at :datetime | |
# |
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
#include <stdio.h> | |
#include <malloc.h> | |
void sum(int, int, int, int, long long*); | |
void multiplication(int, int, int, int, long long*); | |
int lcm(int, int); // lowest common multiple | |
int main() { | |
int p1, q1, p2, q2; | |
long long* ans = (long long*)malloc(2*sizeof(long long)); // answer |
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
#include <stdio.h> | |
#include <malloc.h> | |
#include <limits.h> | |
int minNum(int* str, int m) { | |
int min = INT_MAX; | |
int i; | |
for (i = 0; i < m; i++) { | |
//printf("%d", str[i]); |
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
#include <stdio.h> | |
int evenFact(int n) { | |
int i; | |
int lastNum = 1; | |
for (i = 2; i <= n; i += 2) { | |
if (lastNum == 0) return lastNum; | |
lastNum = (lastNum * (i % 10)) % 10; | |
} |
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
#include <stdio.h> | |
#include <string.h> | |
#include <malloc.h> | |
int main() { | |
int* word; | |
int wordLen = -1; | |
int* anaWord; | |
int anaWordLen = -1; | |
int i, j = 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
class window.MapHandler | |
map = null | |
makeMap: () -> | |
latlng = new google.maps.LatLng(54.711929,20.5089); | |
myOptions = | |
zoom: 12 | |
center: latlng | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions) |
OlderNewer