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> | |
#include <limits.h> | |
#define MAX_NUMBERS 100 | |
int main() { | |
char input[1000]; | |
int numbers[MAX_NUMBERS]; |
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 MAX_NUMBERS 100 | |
int main() { | |
char input[1000]; | |
int numbers[MAX_NUMBERS]; | |
int count = 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
import { NextApiRequest, NextApiResponse } from "next"; | |
import { createCanvas, loadImage, CanvasRenderingContext2D } from "canvas"; | |
import sharp from "sharp"; | |
function wrapText(context: CanvasRenderingContext2D, text: string, x: number, y:number, maxWidth:number, lineHeight:number, color: string) { | |
var words = text.split(' '); | |
var line = ''; | |
context.fillStyle = color; | |
for(var n = 0; n < words.length; n++) { |
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 <bits/stdc++.h> | |
#define bit(n,i) ((n>>i)&1) | |
#define ll long long | |
#define pb push_back | |
#define fi first | |
#define se second | |
#define el '\n' | |
#define p push | |
#define task "BADPAIR" | |
using namespace stdconst int o_3a354d4d74025ce6522d37303bc83fd4=3e6 + (0x000000000000000A + 0x0000000000000205 + 0x0000000000000805 - 0x0000000000000A0F);const int o_42ada5458f8bdd0244c5d0018aea9230=1e6 + (0x0000000000000064 + 0x0000000000000232 + 0x0000000000000832 - 0x0000000000000A96);const int o_94e2bc4f54262dcc163fa274bed7cb69=2e5 + (0x0000000000000064 + 0x0000000000000232 + 0x0000000000000832 - 0x0000000000000A96);const int o_792b6e86933a08ce9bb00fa81dc08c8b=5e3 + (0x0000000000000064 + 0x0000000000000232 + 0x0000000000000832 - 0x0000000000000A96);const int o_a3fcc8301ffae7780ce174c9ab1caf78=1e9 + (0x000000000000000E + 0x0000000000000207 + 0x0000000000000807 - 0x0000000000000A15);const int o_c1d010f9ef9296702280e546a07a2dbe=(0x000000000000003E + 0x000000000000021F + 0x000000000000081F - 0x0000000000000A5D);const int o_2f647 |
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 <bits/stdc++.h> =))))) | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <unistd.h> | |
#define DEFAULT_NUM_SENSORS 1 | |
#define DEFAULT_SAMPLING_TIME 10 | |
#define DEFAULT_SIMULATION_INTERVAL 3600 | |
#define MAX_RPM 3000.0 |