diff options
author | Raphael McSinyx <vn.mcsinyx@gmail.com> | 2017-06-20 15:11:08 +0700 |
---|---|---|
committer | Raphael McSinyx <vn.mcsinyx@gmail.com> | 2017-06-20 15:11:08 +0700 |
commit | 4ac65940e064c5b587699549a0c7277d2dd733a8 (patch) | |
tree | e2a6052f5f3dcd56e760ed85b13310147aeea42b /others/other/laybi.py | |
parent | a0c92beee1199f13227b1642ccf07f264912e5ad (diff) | |
download | cp-4ac65940e064c5b587699549a0c7277d2dd733a8.tar.gz |
Thầy Nguyễn Thanh Tùng ôn THT XXIII
Diffstat (limited to 'others/other/laybi.py')
-rwxr-xr-x | others/other/laybi.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/others/other/laybi.py b/others/other/laybi.py new file mode 100755 index 0000000..ce00396 --- /dev/null +++ b/others/other/laybi.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python3 +from itertools import combinations as C + +with open('laybi.inp') as fi, open('laybi.out', 'w') as fo: + m = map(int, fi.read().split()) + fo.write('NO\n' if all(int.__sub__(*i) % 3 for i in C(m, 2)) else 'YES\n') |