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
t=document.getElementsByTagName("pre")[0].innerHTML.split('\n') | |
t.pop() | |
let ans =0; | |
t.forEach((e) => { | |
ar=e.split(' ').map((o) => parseInt(o)) | |
ans+= ((ar.reduce((arr, a) => { | |
if(arr[0] == -1) { return arr } | |
if(Math.abs(a-arr[0]) == 0 || Math.abs(a-arr[0]) >=4) { | |
return [-1, 0] | |
} |
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
t=document.getElementsByTagName("pre")[0].innerHTML.split('\n') | |
t.pop() | |
a=[] | |
b=[] | |
t.forEach((q) => { | |
let [x, _, __, z] = q.split(' '); | |
a.push(x) | |
b.push(z) | |
}) | |
a = a.sort(); |
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 <Windows.h> | |
#include <stdio.h> | |
int print_up(int input) | |
{ | |
SetConsoleOutputCP(CP_UTF8); | |
int rev=0; | |
while(input) { | |
rev=rev*10+input%10; | |
input=input/10; |
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 <Windows.h> | |
#include <stdio.h> | |
int print_up(int input) | |
{ | |
SetConsoleOutputCP(CP_UTF8); | |
int rev=0; | |
while(input) { | |
rev=rev*10+input%10; | |
input=input/10; |
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
/* | |
NATO (North Atlantic Treaty Organization)'s Logo using turtle | |
author: Manthan Patil, 26, september 2023 | |
*/ | |
#include "simplecpp" | |
#include <math.h> | |
void backward(int n) { | |
left(180); |