Skip to content

Instantly share code, notes, and snippets.

View HoangTuan110's full-sized avatar
🐰

Tsuki HoangTuan110

🐰
View GitHub Profile
@HoangTuan110
HoangTuan110 / soldier_and_bananas.pas
Created September 27, 2022 14:13
Solution to Codeforces Soldier and Bananas
var k, n, w, i, tk: longint;
begin
read(k, n, w);
i := 1; tk := k;
while i <> w+1 do begin
write('k: ', k, ' ');
write('n: ', n, ' ');
write('w: ', w, ' ');
write('i: ', i);
@HoangTuan110
HoangTuan110 / botoc.pas
Created August 8, 2022 08:18
Tin đề số 46
const fi = 'CLAN.INP';
fo = 'CLAN.OUT';
var f, g: text;
a: array[1..100000] of longint;
c, i, x, n: longint;
procedure rf;
begin
fillchar(a, sizeof(a), 0);
assign(f, fi); reset(f); read(f, n);
@HoangTuan110
HoangTuan110 / chenpt.pas
Created July 31, 2022 13:50
Các bài tập tin học HSG hè trong tuần vừa qua (bù cho nghỉ học kì quân đội)
{
chenpt.pas - Chen phan tu tai vi tri da cho
}
const fi = 'CHENPT.INP';
fo = 'CHENPT.OUT';
MAX_ARR = 10000;
var f: text;
i, n, m, k: longint;
a: array[1..MAX_ARR] of longint;
dachen: boolean;
@HoangTuan110
HoangTuan110 / keyoxide.txt
Created June 2, 2022 10:53
My Keyoxide keys
I use Keyoxide[0] for proving online identity. Use the key below to prove that it's me.
OpenPGP key: openpgp4fpr:e9a676dfc223447b24d087f966cb51279c8ca047
My Keyoxide profile: https://keyoxide.org/hkp/E9A676DFC223447B24D087F966CB51279C8CA047
[0]: keyoxide.org
@HoangTuan110
HoangTuan110 / url_shorteners.txt
Last active October 17, 2023 21:40
The ultimate list of URL shorteners
# This file contains a list of almost all URL shorteners services out there,
# whether alive or dead.
# Note that this doesn't include URL shorteners used internally by companies
# and doesn't provide a way for users to create and shorten an URL
# (For example: Twitter with t.co, Google with g.co, etc.)
# Added by Dang Hoang Tuan (31/07/2022)
t.ly
# Added by Dang Hoang Tuan (01/06/2022)
@HoangTuan110
HoangTuan110 / ezsubmit.user.js
Created May 4, 2022 11:52
EasySubmit: Submit a HN submission right in the site that you're in
// ==UserScript==
// @namespace EasySubmit
// @name EasySubmit
// @author Dang Hoang Tuan (tsuki)
// @description Submit a HN submission right in the site that you're in
// @version 1
// @license MIT
// @exclude https://news.ycombinator.com/*
// ==/UserScript==
@HoangTuan110
HoangTuan110 / b1dc.pas
Created May 2, 2022 14:19
Tự làm đi con duỹ
program b1dc;
uses crt;
var i: Integer;
s: Real;
begin
for i := 1 to 20 do
s := s+(1/i);
WriteLn(s:4);
readln;
end.
@HoangTuan110
HoangTuan110 / exp.pas
Created April 25, 2022 09:15
KT HSG 6,7,8 năm học 2021-2022
program exp;
uses crt;
var i, n, s: longint;
begin
clrscr;
write('N = '); readln(n);
s := 0;
for i := 1 to n div 2 do
@HoangTuan110
HoangTuan110 / unique_star.js
Created April 20, 2022 13:04
A user script that generates a random 5 letter string on the Starred button when visiting a GitHub repository.
// ==UserScript==
// @name UniqueStar
// @version 1
// @grant none
// @author Dang Hoang Tuan
// ==/UserScript==
function getRandomChar() {
return Math.floor(Math.random() * (90 - 65 + 1) + 65);
}
@HoangTuan110
HoangTuan110 / bt_ds_m1c.pas
Created April 20, 2022 09:09
Bài 5, 6, 8 trong bài tập dạng số và mảng một chiều
{ AUTO GENERATED BY merge.py. DO NOT EDIT. }
{ START OF next_prime.pas }
program b5; { Program name here }
uses crt;
var i,j,n: integer; { Variables here }
nt: boolean;
begin