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
using System; | |
namespace ConsoleApplication | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
Console.WriteLine("Hello World!"); | |
} |
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
using System; | |
namespace ConsoleApplication | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
// Ввод и вывод | |
Console.WriteLine("Линия с переносом"); |
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
#!/bin/bash | |
ping $1 | awk 'BEGIN { ORS=" " } /^$/ { exit } !/^PING/ { sub(/time=/, "", $7); print "\033[1K\033[G" $7 }' |
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
sing System; | |
namespace ConsoleApplication | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
string login, password; | |
Console.Write("Login: "); |
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
const rl = require('readline').createInterface({ | |
input: process.stdin | |
}) | |
rl.question('', ans => { | |
ans = parseAns(ans) | |
const [n, k] = ans; | |
rl.question('', ans => { | |
ans = parseAns(ans) | |
const min = (ans[ans.length - 1] - ans[0]) / k |
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
#!/data/data/com.termux/files/usr/bin/bash | |
dde=("grant_type=password" \ | |
"client_id=2274003" \ | |
"client_secret=hHbZxrka2uZ6jB1inYsH" \ | |
"v=5") | |
data() { | |
for i in ${dde[@]} $@ | |
do | |
echo --data-urlencode "$i" | |
done |
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
const rl = require('readline').createInterface({ | |
input: process.stdin | |
}) | |
rl.question('', ans => { | |
const a = parseInt(ans) | |
rl.question('', ans => { | |
ans = parseAns(ans) | |
if(ans[0] == 1) console.log(`${ans[0] ^ 2} 2`) | |
else console.log(`${ans[0] ^ 1} 1`) | |
}) |
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
const rl = require('readline').createInterface({ | |
input: process.stdin | |
}) | |
let c_bridges = 0, bridges, down, visited; | |
let n, m, v, u; | |
rl.question('', ans => { | |
[n, m, v, u] = parseAns(ans) | |
c_bridges = m; | |
bridges = []; | |
visited = []; |
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
const rl = require('readline').createInterface({ | |
input: process.stdin | |
}) | |
rl.question('', ans => { | |
const a = parseInt(ans) | |
rl.question('', ans => { | |
ans = parseAns(ans) | |
let y = ans.reduce((a, b) => a ^ b), | |
x = 1; | |
while(ans.includes(x ^ y) || ans.includes(x)) ++x |
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
const rl = require('readline').createInterface({ | |
input: process.stdin | |
}) | |
let c_bridges = 0, bridges, down, visited; | |
let n, m, v, u; | |
rl.question('', ans => { | |
[n, m, v, u] = parseAns(ans) | |
c_bridges = m; | |
bridges = []; | |
visited = []; |
OlderNewer