diff options
-rw-r--r-- | THT/B/QG-2016/QG-2016.pdf | bin | 0 -> 690202 bytes | |||
-rw-r--r-- | THT/B/QG-2016/TRIGRID.TXT | 15 | ||||
-rw-r--r-- | THT/B/QG-2016/remainder.py | 19 | ||||
-rwxr-xr-x | THT/B/QG-2016/trigrid.py | 10 | ||||
-rw-r--r-- | THT/C/Q-2016/bai2.inp (renamed from THT-C/Q-2016/bai2.inp) | 0 | ||||
-rw-r--r-- | THT/C/Q-2016/bai2.out (renamed from THT-C/Q-2016/bai2.out) | 0 | ||||
-rwxr-xr-x | THT/C/Q-2016/bai2.py (renamed from THT-C/Q-2016/bai2.py) | 0 | ||||
-rwxr-xr-x | THT/C/Q-2016/bai3.py (renamed from THT-C/Q-2016/bai3.py) | 0 | ||||
-rw-r--r-- | THT/C/TP-2016/buy.pas (renamed from THT-C/TP-2016/buy.pas) | 0 | ||||
-rw-r--r-- | THT/C/TP-2016/play.pas (renamed from THT-C/TP-2016/play.pas) | 0 | ||||
-rw-r--r-- | THT/C/TP-2016/set.pas (renamed from THT-C/TP-2016/set.pas) | 0 |
11 files changed, 44 insertions, 0 deletions
diff --git a/THT/B/QG-2016/QG-2016.pdf b/THT/B/QG-2016/QG-2016.pdf new file mode 100644 index 0000000..e98feac --- /dev/null +++ b/THT/B/QG-2016/QG-2016.pdf Binary files differdiff --git a/THT/B/QG-2016/TRIGRID.TXT b/THT/B/QG-2016/TRIGRID.TXT new file mode 100644 index 0000000..c44f939 --- /dev/null +++ b/THT/B/QG-2016/TRIGRID.TXT @@ -0,0 +1,15 @@ +27 +13 +48 +78 +868 +168 +400 +1233 +685 +819 +1693 +342 +1504 +1252 +576 diff --git a/THT/B/QG-2016/remainder.py b/THT/B/QG-2016/remainder.py new file mode 100644 index 0000000..45681ca --- /dev/null +++ b/THT/B/QG-2016/remainder.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 + +l = [ + (12, 3, 8), + (2, 15, 17), + (456, 6, 1296), + (1234, 100, 9), + (11223344, 1000000, 142857), + (55667788, 10000000, 1000000007), + (1357, 24682468, 999999999), + (24680, 1357913579, 777777777), + (998, 1000000000000, 999), + (1234, 11111111111111, 30), + (1, 222222222222222, 123456789), + (2016, 666666666666666, 8888888888), + (11223344, 555666777888999, 1357924680), + (999999999999999967, 999999999999999877, 999999999999999989), + (123456789123456789, 123456789123456789, 987654321123456789) +] diff --git a/THT/B/QG-2016/trigrid.py b/THT/B/QG-2016/trigrid.py new file mode 100755 index 0000000..ea33d07 --- /dev/null +++ b/THT/B/QG-2016/trigrid.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python3 + +a = (4, 3, 5, 6, 111, 222, 3333, 4444, 55555, 666666, 7777777, 88888888, + 999999999, 123456789123456789, 1000000000000000000) + +t = lambda n: n * (n + 2) * (n * 2 + 1) // 8 % 2016 + +with open('TRIGRID.TXT', 'w') as f: + for i in a: + f.write("{}\n".format(t(i))) diff --git a/THT-C/Q-2016/bai2.inp b/THT/C/Q-2016/bai2.inp index 9a73285..9a73285 100644 --- a/THT-C/Q-2016/bai2.inp +++ b/THT/C/Q-2016/bai2.inp diff --git a/THT-C/Q-2016/bai2.out b/THT/C/Q-2016/bai2.out index b0a3d7f..b0a3d7f 100644 --- a/THT-C/Q-2016/bai2.out +++ b/THT/C/Q-2016/bai2.out diff --git a/THT-C/Q-2016/bai2.py b/THT/C/Q-2016/bai2.py index bb04c54..bb04c54 100755 --- a/THT-C/Q-2016/bai2.py +++ b/THT/C/Q-2016/bai2.py diff --git a/THT-C/Q-2016/bai3.py b/THT/C/Q-2016/bai3.py index f4139a9..f4139a9 100755 --- a/THT-C/Q-2016/bai3.py +++ b/THT/C/Q-2016/bai3.py diff --git a/THT-C/TP-2016/buy.pas b/THT/C/TP-2016/buy.pas index acbd1d3..acbd1d3 100644 --- a/THT-C/TP-2016/buy.pas +++ b/THT/C/TP-2016/buy.pas diff --git a/THT-C/TP-2016/play.pas b/THT/C/TP-2016/play.pas index 8ae0d7c..8ae0d7c 100644 --- a/THT-C/TP-2016/play.pas +++ b/THT/C/TP-2016/play.pas diff --git a/THT-C/TP-2016/set.pas b/THT/C/TP-2016/set.pas index c36dc23..c36dc23 100644 --- a/THT-C/TP-2016/set.pas +++ b/THT/C/TP-2016/set.pas |