From 0525ffad2488929858ea52f262e952d3831b7905 Mon Sep 17 00:00:00 2001 From: Saturneric Date: Tue, 1 Sep 2020 00:48:58 +0800 Subject: [PATCH] Add. --- 1166/main.c | 93 ++++++++++++++++++ 1166/problem.set | 0 1166/stdin | 0 1166/stdout | 0 1754/main.c | 74 ++++++++++++++ 1754/problem.set | 0 1754/stdin | 0 1754/stdout | 0 2000/main.c | 22 +++++ 2000/problem.build | Bin 0 -> 8568 bytes 2000/problem.build.dSYM/Contents/Info.plist | 20 ++++ .../Contents/Resources/DWARF/problem.build | Bin 0 -> 9252 bytes 2000/problem.set | 0 2000/stdin | 3 + 2000/stdout | 3 + 2001/main.c | 12 +++ 2001/problem.build | Bin 0 -> 8528 bytes 2001/problem.set | 0 2001/stdin | 2 + 2001/stdout | 2 + 2002/main.c | 12 +++ 2002/problem.build | Bin 0 -> 8528 bytes 2002/problem.set | 0 2002/stdin | 6 ++ 2002/stdout | 6 ++ 2003/main.c | 10 ++ 2003/problem.build | Bin 0 -> 8528 bytes 2003/problem.set | 0 2003/stdin | 2 + 2003/stdout | 2 + 2004/main.c | 16 +++ 2004/problem.build | Bin 0 -> 8480 bytes 2004/problem.set | 0 2004/std | 0 2004/stdin | 1 + 2004/stdout | 1 + 2005/main.c | 24 +++++ 2005/problem.build | Bin 0 -> 8568 bytes 2005/problem.set | 0 2005/stdin | 4 + 2005/stdout | 4 + 2006/main.c | 16 +++ 2006/problem.build | Bin 0 -> 8528 bytes 2006/problem.set | 0 2006/stdin | 2 + 2006/stdout | 2 + 2007/main.c | 23 +++++ 2007/problem.build | Bin 0 -> 8528 bytes 2007/problem.set | 0 2007/stdin | 4 + 2007/stdout | 4 + 2008/main.c | 19 ++++ 2008/problem.build | Bin 0 -> 8528 bytes 2008/problem.set | 0 2008/stdin | 3 + 2008/stdout | 2 + 2009/main.c | 16 +++ 2009/problem.build | Bin 0 -> 8528 bytes 2009/problem.set | 0 2009/stdin | 2 + 2009/stdout | 2 + 2010/main.c | 25 +++++ 2010/problem.build | Bin 0 -> 8660 bytes 2010/problem.set | 0 2010/stdin | 2 + 2010/stdout | 2 + 2011/main.c | 18 ++++ 2011/problem.build | Bin 0 -> 8480 bytes 2011/problem.set | 0 2011/stdin | 2 + 2011/stdout | 3 + 2012/main.c | 29 ++++++ 2012/problem.build | Bin 0 -> 8528 bytes 2012/problem.set | 0 2012/stdin | 3 + 2012/stdout | 2 + 2013/main.c | 15 +++ 2013/problem.build | Bin 0 -> 8528 bytes 2013/problem.set | 0 2013/stdin | 2 + 2013/stdout | 2 + 2014/main.c | 26 +++++ 2014/problem.build | Bin 0 -> 8700 bytes 2014/problem.set | 0 2014/stdin | 3 + 2014/stdout | 3 + 2015/main.c | 31 ++++++ 2015/problem.build | Bin 0 -> 8528 bytes 2015/problem.build.dSYM/Contents/Info.plist | 20 ++++ .../Contents/Resources/DWARF/problem.build | Bin 0 -> 9150 bytes 2015/problem.set | 0 2015/stdin | 2 + 2015/stdout | 2 + 2016/main.c | 27 +++++ 2016/problem.build | Bin 0 -> 8700 bytes 2016/problem.set | 0 2016/stdin | 2 + 2016/stdout | 2 + 2017/main.c | 18 ++++ 2017/problem.build | Bin 0 -> 8612 bytes 2017/problem.set | 0 2017/stdin | 3 + 2017/stdout | 2 + 2018/main.c | 21 ++++ 2018/problem.build | Bin 0 -> 8528 bytes 2018/problem.build.dSYM/Contents/Info.plist | 20 ++++ .../Contents/Resources/DWARF/problem.build | Bin 0 -> 9360 bytes 2018/problem.set | 0 2018/stdin | 6 ++ 2018/stdout | 5 + 2019/main.c | 25 +++++ 2019/problem.build | Bin 0 -> 8660 bytes 2019/problem.set | 0 2019/stdin | 5 + 2019/stdout | 2 + 2020/main.c | 28 ++++++ 2020/problem.build | Bin 0 -> 8612 bytes 2020/problem.build.dSYM/Contents/Info.plist | 20 ++++ .../Contents/Resources/DWARF/problem.build | Bin 0 -> 9272 bytes 2020/problem.set | 0 2020/stdin | 3 + 2020/stdout | 2 + 2021/main.c | 21 ++++ 2021/problem.build | Bin 0 -> 8692 bytes 2021/problem.set | 0 2021/stdin | 3 + 2021/stdout | 1 + 2022/main.c | 23 +++++ 2022/problem.build | Bin 0 -> 8480 bytes 2022/problem.set | 0 2022/stdin | 3 + 2022/stdout | 1 + 2023/main.c | 43 ++++++++ 2023/problem.build | Bin 0 -> 8708 bytes 2023/problem.set | 0 2023/stdin | 8 ++ 2023/stdout | 4 + 2024/main.c | 40 ++++++++ 2024/problem.build | Bin 0 -> 8700 bytes 2024/problem.set | 0 2024/stdin | 4 + 2024/stdout | 3 + 2025/main.c | 20 ++++ 2025/problem.build | Bin 0 -> 8660 bytes 2025/problem.set | 0 2025/stdin | 2 + 2025/stdout | 2 + 2026/main.c | 18 ++++ 2026/problem.build | Bin 0 -> 8612 bytes 2026/problem.set | 0 2026/stdin | 2 + 2026/stdout | 2 + 2027/main.c | 44 +++++++++ 2027/problem.build | Bin 0 -> 8536 bytes 2027/problem.set | 0 2027/stdin | 3 + 2027/stdout | 11 +++ 2028/main.c | 21 ++++ 2028/problem.build | Bin 0 -> 8612 bytes 2028/problem.set | 0 2028/stdin | 2 + 2028/stdout | 2 + 2029/main.c | 18 ++++ 2029/problem.build | Bin 0 -> 8700 bytes 2029/problem.set | 0 2029/stdin | 17 ++++ 2029/stdout | 4 + 2030/main.c | 21 ++++ 2030/problem.build | Bin 0 -> 8660 bytes 2030/problem.set | 0 2030/stdin | 3 + 2030/stdout | 2 + 2032/main.c | 31 ++++++ 2032/problem.build | Bin 0 -> 8504 bytes 2032/problem.set | 0 2032/stdin | 1 + 2032/stdout | 22 +++++ 2033/main.c | 21 ++++ 2033/problem.build | Bin 0 -> 8480 bytes 2033/problem.set | 0 2033/stdin | 3 + 2033/stdout | 2 + 2034/2035/main.c | 16 +++ 2034/2035/problem.build | Bin 0 -> 8480 bytes 2034/2035/problem.set | 0 2034/2035/stdin | 4 + 2034/2035/stdout | 6 ++ 2034/main.c | 40 ++++++++ 2034/problem.build | Bin 0 -> 8900 bytes 2034/problem.build.dSYM/Contents/Info.plist | 20 ++++ .../Contents/Resources/DWARF/problem.build | Bin 0 -> 9569 bytes 2034/problem.set | 0 2034/stdin | 1 + 2034/stdout | 1 + 2040/main.c | 20 ++++ 2040/problem.build | Bin 0 -> 8480 bytes 2040/problem.set | 0 2040/stdin | 3 + 2040/stdout | 2 + 2042/main.c | 15 +++ 2042/problem.build | Bin 0 -> 8480 bytes 2042/problem.set | 0 2042/stdin | 3 + 2042/stdout | 2 + 2043/main.c | 37 +++++++ 2043/problem.build | Bin 0 -> 8668 bytes 2043/problem.build.dSYM/Contents/Info.plist | 20 ++++ .../Contents/Resources/DWARF/problem.build | Bin 0 -> 9620 bytes 2043/problem.set | 0 2043/stdin | 4 + 2043/stdout | 3 + 2044/main.c | 21 ++++ 2044/problem.build | Bin 0 -> 8668 bytes 2044/problem.set | 0 2044/stdin | 3 + 2044/stdout | 2 + 2045-i/main.c | 14 +++ 2045-i/problem.build | Bin 0 -> 8620 bytes 2045-i/problem.set | 0 2045-i/stdin | 8 ++ 2045-i/stdout | 8 ++ 2045/main.c | 20 ++++ 2045/problem.build | Bin 0 -> 8668 bytes 2045/problem.set | 0 2045/stdin | 7 ++ 2045/stdout | 7 ++ 2046/main.c | 13 +++ 2046/problem.build | Bin 0 -> 8668 bytes 2046/problem.set | 0 2046/stdin | 5 + 2046/stdout | 5 + 2047/main.c | 18 ++++ 2047/problem.build | Bin 0 -> 8668 bytes 2047/problem.set | 0 2047/stdin | 3 + 2047/stdout | 3 + 2048-i/main.c | 2 + 2048-i/problem.build | Bin 0 -> 8536 bytes 2048-i/problem.set | 0 2048-i/stdin | 5 + 2048-i/stdout | 4 + 2048/main.c | 17 ++++ 2048/problem.build | Bin 0 -> 8668 bytes 2048/problem.set | 0 2048/stdin | 4 + 2048/stdout | 3 + 2049-i/main.c | 21 ++++ 2049-i/problem.build | Bin 0 -> 8536 bytes 2049-i/problem.set | 0 2049-i/stdin | 3 + 2049-i/stdout | 2 + 2049/main.c | 30 ++++++ 2049/problem.build | Bin 0 -> 8692 bytes 2049/problem.set | 0 2049/stdin | 3 + 2049/stdout | 2 + 2050/main.c | 15 +++ 2050/problem.build | Bin 0 -> 8668 bytes 2050/problem.set | 0 2050/stdin | 3 + 2050/stdout | 3 + 2051/main.c | 20 ++++ 2051/problem.build | Bin 0 -> 8480 bytes 2051/problem.set | 0 2051/stdin | 1 + 2051/stdout | 6 ++ 2052/main.c | 13 +++ 2052/problem.build | Bin 0 -> 8480 bytes 2052/problem.set | 0 2052/stdin | 2 + 2052/stdout | 2 + 2053/main.c | 24 +++++ 2053/problem.build | Bin 0 -> 8696 bytes 2053/problem.set | 0 2053/stdin | 3 + 2053/stdout | 3 + 2055/main.c | 18 ++++ 2055/problem.build | Bin 0 -> 8480 bytes 2055/problem.set | 0 2055/stdin | 7 ++ 2055/stdout | 6 ++ 2056-i/main.c | 30 ++++++ 2056-i/problem.build | Bin 0 -> 8576 bytes 2056-i/problem.set | 0 2056-i/stdin | 3 + 2056-i/stdout | 3 + 2056/main.c | 64 ++++++++++++ 2056/problem.build | Bin 0 -> 8692 bytes 2056/problem.build.dSYM/Contents/Info.plist | 20 ++++ .../Contents/Resources/DWARF/problem.build | Bin 0 -> 10432 bytes 2056/problem.set | 0 2056/stdin | 1 + 2056/stdout | 1 + 2057/main.c | 12 +++ 2057/problem.build | Bin 0 -> 8480 bytes 2057/problem.set | 0 2057/stdin | 6 ++ 2057/stdout | 6 ++ 2058/main.c | 18 ++++ 2058/problem.build | Bin 0 -> 8480 bytes 2058/problem.set | 0 2058/stdin | 3 + 2058/stdout | 8 ++ 2059/main.c | 6 ++ 2059/problem.set | 0 2059/stdin | 0 2059/stdout | 0 2061/main.c | 29 ++++++ 2061/problem.build | Bin 0 -> 8620 bytes 2061/problem.set | 0 2061/stdin | 8 ++ 2061/stdout | 3 + 2070/main.c | 13 +++ 2070/problem.build | Bin 0 -> 8668 bytes 2070/problem.set | 0 2070/stdin | 4 + 2070/stdout | 3 + 2071/main.c | 21 ++++ 2071/problem.build | Bin 0 -> 8620 bytes 2071/problem.set | 0 2071/stdin | 3 + 2071/stdout | 2 + 2075/main.c | 14 +++ 2075/problem.build | Bin 0 -> 8480 bytes 2075/problem.set | 0 2075/stdin | 3 + 2075/stdout | 2 + 2076/main.c | 20 ++++ 2076/problem.build | Bin 0 -> 8480 bytes 2076/problem.set | 0 2076/stdin | 3 + 2076/stdout | 2 + 2078/main.c | 20 ++++ 2078/problem.build | Bin 0 -> 8480 bytes 2078/problem.set | 0 2078/stdin | 18 ++++ 2078/stdout | 2 + 2080/main.c | 30 ++++++ 2080/problem.build | Bin 0 -> 8552 bytes 2080/problem.set | 0 2080/stdin | 3 + 2080/stdout | 2 + 2081/main.c | 16 +++ 2081/problem.build | Bin 0 -> 8620 bytes 2081/problem.set | 0 2081/stdin | 3 + 2081/stdout | 2 + 3031/main.c | 26 +++++ 3031/problem.build | Bin 0 -> 8512 bytes 3031/problem.set | 0 3031/stdin | 4 + 3031/stdout | 4 + 3036/main.c | 25 +++++ 3036/problem.build | Bin 0 -> 8620 bytes 3036/problem.set | 0 3036/stdin | 3 + 3036/stdout | 2 + 3037/main.c | 40 ++++++++ 3037/problem.build | Bin 0 -> 8620 bytes 3037/problem.set | 0 3037/stdin | 14 +++ 3037/stdout | 1 + 3039/main.c | 14 +++ 3039/problem.build | Bin 0 -> 8480 bytes 3039/problem.set | 0 3039/stdin | 4 + 3039/stdout | 3 + 4041/main.c | 19 ++++ 4041/problem.build | Bin 0 -> 8668 bytes 4041/problem.build.dSYM/Contents/Info.plist | 20 ++++ .../Contents/Resources/DWARF/problem.build | Bin 0 -> 9296 bytes 4041/problem.set | 0 4041/stdin | 3 + 4041/stdout | 2 + 374 files changed, 2372 insertions(+) create mode 100644 1166/main.c create mode 100644 1166/problem.set create mode 100644 1166/stdin create mode 100644 1166/stdout create mode 100644 1754/main.c create mode 100644 1754/problem.set create mode 100644 1754/stdin create mode 100644 1754/stdout create mode 100644 2000/main.c create mode 100644 2000/problem.build create mode 100644 2000/problem.build.dSYM/Contents/Info.plist create mode 100644 2000/problem.build.dSYM/Contents/Resources/DWARF/problem.build create mode 100644 2000/problem.set create mode 100644 2000/stdin create mode 100644 2000/stdout create mode 100644 2001/main.c create mode 100644 2001/problem.build create mode 100644 2001/problem.set create mode 100644 2001/stdin create mode 100644 2001/stdout create mode 100644 2002/main.c create mode 100644 2002/problem.build create mode 100644 2002/problem.set create mode 100644 2002/stdin create mode 100644 2002/stdout create mode 100644 2003/main.c create mode 100644 2003/problem.build create mode 100644 2003/problem.set create mode 100644 2003/stdin create mode 100644 2003/stdout create mode 100644 2004/main.c create mode 100644 2004/problem.build create mode 100644 2004/problem.set create mode 100644 2004/std create mode 100644 2004/stdin create mode 100644 2004/stdout create mode 100644 2005/main.c create mode 100644 2005/problem.build create mode 100644 2005/problem.set create mode 100644 2005/stdin create mode 100644 2005/stdout create mode 100644 2006/main.c create mode 100644 2006/problem.build create mode 100644 2006/problem.set create mode 100644 2006/stdin create mode 100644 2006/stdout create mode 100644 2007/main.c create mode 100644 2007/problem.build create mode 100644 2007/problem.set create mode 100644 2007/stdin create mode 100644 2007/stdout create mode 100644 2008/main.c create mode 100644 2008/problem.build create mode 100644 2008/problem.set create mode 100644 2008/stdin create mode 100644 2008/stdout create mode 100644 2009/main.c create mode 100644 2009/problem.build create mode 100644 2009/problem.set create mode 100644 2009/stdin create mode 100644 2009/stdout create mode 100644 2010/main.c create mode 100644 2010/problem.build create mode 100644 2010/problem.set create mode 100644 2010/stdin create mode 100644 2010/stdout create mode 100644 2011/main.c create mode 100644 2011/problem.build create mode 100644 2011/problem.set create mode 100644 2011/stdin create mode 100644 2011/stdout create mode 100644 2012/main.c create mode 100644 2012/problem.build create mode 100644 2012/problem.set create mode 100644 2012/stdin create mode 100644 2012/stdout create mode 100644 2013/main.c create mode 100644 2013/problem.build create mode 100644 2013/problem.set create mode 100644 2013/stdin create mode 100644 2013/stdout create mode 100644 2014/main.c create mode 100644 2014/problem.build create mode 100644 2014/problem.set create mode 100644 2014/stdin create mode 100644 2014/stdout create mode 100644 2015/main.c create mode 100644 2015/problem.build create mode 100644 2015/problem.build.dSYM/Contents/Info.plist create mode 100644 2015/problem.build.dSYM/Contents/Resources/DWARF/problem.build create mode 100644 2015/problem.set create mode 100644 2015/stdin create mode 100644 2015/stdout create mode 100644 2016/main.c create mode 100644 2016/problem.build create mode 100644 2016/problem.set create mode 100644 2016/stdin create mode 100644 2016/stdout create mode 100644 2017/main.c create mode 100644 2017/problem.build create mode 100644 2017/problem.set create mode 100644 2017/stdin create mode 100644 2017/stdout create mode 100644 2018/main.c create mode 100644 2018/problem.build create mode 100644 2018/problem.build.dSYM/Contents/Info.plist create mode 100644 2018/problem.build.dSYM/Contents/Resources/DWARF/problem.build create mode 100644 2018/problem.set create mode 100644 2018/stdin create mode 100644 2018/stdout create mode 100644 2019/main.c create mode 100644 2019/problem.build create mode 100644 2019/problem.set create mode 100644 2019/stdin create mode 100644 2019/stdout create mode 100644 2020/main.c create mode 100644 2020/problem.build create mode 100644 2020/problem.build.dSYM/Contents/Info.plist create mode 100644 2020/problem.build.dSYM/Contents/Resources/DWARF/problem.build create mode 100644 2020/problem.set create mode 100644 2020/stdin create mode 100644 2020/stdout create mode 100644 2021/main.c create mode 100644 2021/problem.build create mode 100644 2021/problem.set create mode 100644 2021/stdin create mode 100644 2021/stdout create mode 100644 2022/main.c create mode 100644 2022/problem.build create mode 100644 2022/problem.set create mode 100644 2022/stdin create mode 100644 2022/stdout create mode 100644 2023/main.c create mode 100644 2023/problem.build create mode 100644 2023/problem.set create mode 100644 2023/stdin create mode 100644 2023/stdout create mode 100644 2024/main.c create mode 100644 2024/problem.build create mode 100644 2024/problem.set create mode 100644 2024/stdin create mode 100644 2024/stdout create mode 100644 2025/main.c create mode 100644 2025/problem.build create mode 100644 2025/problem.set create mode 100644 2025/stdin create mode 100644 2025/stdout create mode 100644 2026/main.c create mode 100644 2026/problem.build create mode 100644 2026/problem.set create mode 100644 2026/stdin create mode 100644 2026/stdout create mode 100644 2027/main.c create mode 100644 2027/problem.build create mode 100644 2027/problem.set create mode 100644 2027/stdin create mode 100644 2027/stdout create mode 100644 2028/main.c create mode 100644 2028/problem.build create mode 100644 2028/problem.set create mode 100644 2028/stdin create mode 100644 2028/stdout create mode 100644 2029/main.c create mode 100644 2029/problem.build create mode 100644 2029/problem.set create mode 100644 2029/stdin create mode 100644 2029/stdout create mode 100644 2030/main.c create mode 100644 2030/problem.build create mode 100644 2030/problem.set create mode 100644 2030/stdin create mode 100644 2030/stdout create mode 100644 2032/main.c create mode 100644 2032/problem.build create mode 100644 2032/problem.set create mode 100644 2032/stdin create mode 100644 2032/stdout create mode 100644 2033/main.c create mode 100644 2033/problem.build create mode 100644 2033/problem.set create mode 100644 2033/stdin create mode 100644 2033/stdout create mode 100644 2034/2035/main.c create mode 100644 2034/2035/problem.build create mode 100644 2034/2035/problem.set create mode 100644 2034/2035/stdin create mode 100644 2034/2035/stdout create mode 100644 2034/main.c create mode 100644 2034/problem.build create mode 100644 2034/problem.build.dSYM/Contents/Info.plist create mode 100644 2034/problem.build.dSYM/Contents/Resources/DWARF/problem.build create mode 100644 2034/problem.set create mode 100644 2034/stdin create mode 100644 2034/stdout create mode 100644 2040/main.c create mode 100644 2040/problem.build create mode 100644 2040/problem.set create mode 100644 2040/stdin create mode 100644 2040/stdout create mode 100644 2042/main.c create mode 100644 2042/problem.build create mode 100644 2042/problem.set create mode 100644 2042/stdin create mode 100644 2042/stdout create mode 100644 2043/main.c create mode 100644 2043/problem.build create mode 100644 2043/problem.build.dSYM/Contents/Info.plist create mode 100644 2043/problem.build.dSYM/Contents/Resources/DWARF/problem.build create mode 100644 2043/problem.set create mode 100644 2043/stdin create mode 100644 2043/stdout create mode 100644 2044/main.c create mode 100644 2044/problem.build create mode 100644 2044/problem.set create mode 100644 2044/stdin create mode 100644 2044/stdout create mode 100644 2045-i/main.c create mode 100644 2045-i/problem.build create mode 100644 2045-i/problem.set create mode 100644 2045-i/stdin create mode 100644 2045-i/stdout create mode 100644 2045/main.c create mode 100644 2045/problem.build create mode 100644 2045/problem.set create mode 100644 2045/stdin create mode 100644 2045/stdout create mode 100644 2046/main.c create mode 100644 2046/problem.build create mode 100644 2046/problem.set create mode 100644 2046/stdin create mode 100644 2046/stdout create mode 100644 2047/main.c create mode 100644 2047/problem.build create mode 100644 2047/problem.set create mode 100644 2047/stdin create mode 100644 2047/stdout create mode 100644 2048-i/main.c create mode 100644 2048-i/problem.build create mode 100644 2048-i/problem.set create mode 100644 2048-i/stdin create mode 100644 2048-i/stdout create mode 100644 2048/main.c create mode 100644 2048/problem.build create mode 100644 2048/problem.set create mode 100644 2048/stdin create mode 100644 2048/stdout create mode 100644 2049-i/main.c create mode 100644 2049-i/problem.build create mode 100644 2049-i/problem.set create mode 100644 2049-i/stdin create mode 100644 2049-i/stdout create mode 100644 2049/main.c create mode 100644 2049/problem.build create mode 100644 2049/problem.set create mode 100644 2049/stdin create mode 100644 2049/stdout create mode 100644 2050/main.c create mode 100644 2050/problem.build create mode 100644 2050/problem.set create mode 100644 2050/stdin create mode 100644 2050/stdout create mode 100644 2051/main.c create mode 100644 2051/problem.build create mode 100644 2051/problem.set create mode 100644 2051/stdin create mode 100644 2051/stdout create mode 100644 2052/main.c create mode 100644 2052/problem.build create mode 100644 2052/problem.set create mode 100644 2052/stdin create mode 100644 2052/stdout create mode 100644 2053/main.c create mode 100644 2053/problem.build create mode 100644 2053/problem.set create mode 100644 2053/stdin create mode 100644 2053/stdout create mode 100644 2055/main.c create mode 100644 2055/problem.build create mode 100644 2055/problem.set create mode 100644 2055/stdin create mode 100644 2055/stdout create mode 100644 2056-i/main.c create mode 100644 2056-i/problem.build create mode 100644 2056-i/problem.set create mode 100644 2056-i/stdin create mode 100644 2056-i/stdout create mode 100644 2056/main.c create mode 100644 2056/problem.build create mode 100644 2056/problem.build.dSYM/Contents/Info.plist create mode 100644 2056/problem.build.dSYM/Contents/Resources/DWARF/problem.build create mode 100644 2056/problem.set create mode 100644 2056/stdin create mode 100644 2056/stdout create mode 100644 2057/main.c create mode 100644 2057/problem.build create mode 100644 2057/problem.set create mode 100644 2057/stdin create mode 100644 2057/stdout create mode 100644 2058/main.c create mode 100644 2058/problem.build create mode 100644 2058/problem.set create mode 100644 2058/stdin create mode 100644 2058/stdout create mode 100644 2059/main.c create mode 100644 2059/problem.set create mode 100644 2059/stdin create mode 100644 2059/stdout create mode 100644 2061/main.c create mode 100644 2061/problem.build create mode 100644 2061/problem.set create mode 100644 2061/stdin create mode 100644 2061/stdout create mode 100644 2070/main.c create mode 100644 2070/problem.build create mode 100644 2070/problem.set create mode 100644 2070/stdin create mode 100644 2070/stdout create mode 100644 2071/main.c create mode 100644 2071/problem.build create mode 100644 2071/problem.set create mode 100644 2071/stdin create mode 100644 2071/stdout create mode 100644 2075/main.c create mode 100644 2075/problem.build create mode 100644 2075/problem.set create mode 100644 2075/stdin create mode 100644 2075/stdout create mode 100644 2076/main.c create mode 100644 2076/problem.build create mode 100644 2076/problem.set create mode 100644 2076/stdin create mode 100644 2076/stdout create mode 100644 2078/main.c create mode 100644 2078/problem.build create mode 100644 2078/problem.set create mode 100644 2078/stdin create mode 100644 2078/stdout create mode 100644 2080/main.c create mode 100644 2080/problem.build create mode 100644 2080/problem.set create mode 100644 2080/stdin create mode 100644 2080/stdout create mode 100644 2081/main.c create mode 100644 2081/problem.build create mode 100644 2081/problem.set create mode 100644 2081/stdin create mode 100644 2081/stdout create mode 100644 3031/main.c create mode 100644 3031/problem.build create mode 100644 3031/problem.set create mode 100644 3031/stdin create mode 100644 3031/stdout create mode 100644 3036/main.c create mode 100644 3036/problem.build create mode 100644 3036/problem.set create mode 100644 3036/stdin create mode 100644 3036/stdout create mode 100644 3037/main.c create mode 100644 3037/problem.build create mode 100644 3037/problem.set create mode 100644 3037/stdin create mode 100644 3037/stdout create mode 100644 3039/main.c create mode 100644 3039/problem.build create mode 100644 3039/problem.set create mode 100644 3039/stdin create mode 100644 3039/stdout create mode 100644 4041/main.c create mode 100644 4041/problem.build create mode 100644 4041/problem.build.dSYM/Contents/Info.plist create mode 100644 4041/problem.build.dSYM/Contents/Resources/DWARF/problem.build create mode 100644 4041/problem.set create mode 100644 4041/stdin create mode 100644 4041/stdout diff --git a/1166/main.c b/1166/main.c new file mode 100644 index 0000000..b2d64eb --- /dev/null +++ b/1166/main.c @@ -0,0 +1,93 @@ +#include + +struct node { + long from, to; + unsigned long long value; +}; + +int build_tree(struct node *tree,int *stations, long idx, int from, int to); +unsigned long long find_section(struct node *tree, long idx, int from, int to); +int add_point(struct node * tree, long idx, int p_idx, int value); +int sub_point(struct node * tree, long idx, int p_idx, int value); + +int stations[50000]; +struct node tree[200000]; + +int main(void) { + + int no; + scanf("%d",&no); + int k,i; + for(k = 0; k < no; k++){ + printf("Case %d:\n",k+1); + int n; + scanf("%d",&n); + for(i = 0; i < n; i++){ + scanf("%d",&stations[i]); + } + build_tree(tree, stations, 0, 1, n); + char order[6]; + while(scanf("%s",order) && order[0]!='E'){ + if(order[0]=='A'){ + int idx, peo; + scanf("%d %d",&idx,&peo); + add_point(tree, 0, idx, peo); + } + else if(order[0]=='S'){ + int idx, peo; + scanf("%d %d",&idx,&peo); + sub_point(tree, 0, idx, peo); + } + else if(order[0]=='Q'){ + int idxa, idxb; + scanf("%d %d",&idxa,&idxb); + printf("%llu\n",find_section(tree, 0, idxa, idxb)); + } + } + } + return 0; +} + +int build_tree(struct node *tree,int *stations, long idx, int from, int to){ + tree[idx].from = from; + tree[idx].to = to; + if(from - to){ + build_tree(tree, stations, 2*idx+1, from, (from+to)/2); + build_tree(tree, stations, 2*idx+2, (from+to)/2+1, to); + tree[idx].value = tree[2*idx+1].value + tree[2*idx+2].value; + } + else tree[idx].value = stations[from-1]; + return 0; +} + + +unsigned long long find_section(struct node *tree, long idx, int from, int to){ + long h_idx = (tree[idx].from + tree[idx].to)/2; + unsigned long long sum = 0; + if(tree[idx].from == from && tree[idx].to == to) return tree[idx].value; + else if(from <= h_idx && to > h_idx) + sum += find_section(tree, 2*idx+1, from, h_idx) + find_section(tree, 2*idx+2, h_idx+1, to); + else if(from <= h_idx && to <= h_idx) sum += find_section(tree,2*idx+1, from, to); + else if (from > h_idx && to > h_idx) sum += find_section(tree,2*idx+2, from, to); + return sum; +} + +int add_point(struct node * tree, long idx, int p_idx, int value){ + long h_idx = (tree[idx].from+tree[idx].to)/2; + tree[idx].value += value; + if(tree[idx].from < tree[idx].to){ + if(p_idx <= h_idx) add_point(tree, idx*2+1, p_idx, value); + else add_point(tree, idx*2+2, p_idx, value); + } + return 0; +} + +int sub_point(struct node * tree, long idx, int p_idx, int value){ + long h_idx = (tree[idx].from+tree[idx].to)/2; + tree[idx].value -= value; + if(tree[idx].from < tree[idx].to){ + if(p_idx <= h_idx) sub_point(tree, idx*2+1, p_idx, value); + else sub_point(tree, idx*2+2, p_idx, value); + } + return 0; +} diff --git a/1166/problem.set b/1166/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/1166/stdin b/1166/stdin new file mode 100644 index 0000000..e69de29 diff --git a/1166/stdout b/1166/stdout new file mode 100644 index 0000000..e69de29 diff --git a/1754/main.c b/1754/main.c new file mode 100644 index 0000000..c893270 --- /dev/null +++ b/1754/main.c @@ -0,0 +1,74 @@ +#include + +struct node { + long from, to; + long value; +}; + +int build_tree(struct node *tree,int *stations, long idx, long from, long to); +long find_section(struct node *tree, long idx, long from, long to); +int upd_point(struct node * tree, long idx, long p_idx, long value); + +#define MAX (200000+5) + +int students[MAX]; +struct node tree[4*MAX]; + +int main(void) { + long sn, cn, i; + while(scanf("%ld %ld",&sn,&cn) != EOF){ + for(i = 0; i < sn; i++) scanf("%d",students+i); + build_tree(tree, students, 0, 1, sn); + for(i = 0; i < cn; i++){ + char cmd[2]; + scanf("%s",cmd); + if(cmd[0] == 'Q'){ + long fidx, tidx; + scanf("%ld %ld",&fidx,&tidx); + printf("%ld\n",find_section(tree, 0,fidx, tidx)); + } + else if(cmd[0] == 'U'){ + long idx; + int value; + scanf("%ld %d",&idx,&value); + upd_point(tree, 0, idx, value); + } + } + } + return 0; +} + +int build_tree(struct node *tree,int *students, long idx, long from, long to){ + tree[idx].from = from; + tree[idx].to = to; + if(from < to){ + build_tree(tree, students, 2*idx+1, from, (from+to)/2); + build_tree(tree, students, 2*idx+2, (from+to)/2+1, to); + tree[idx].value = (tree[2*idx+1].value)>(tree[2*idx+2].value)?(tree[2*idx+1].value):(tree[2*idx+2].value); + } + else tree[idx].value = students[from-1]; + return 0; +} + +long find_section(struct node *tree, long idx, long from, long to){ + long h_idx = (tree[idx].from + tree[idx].to)/2; + if(tree[idx].from == from && tree[idx].to == to) + return tree[idx].value; + if(from <= h_idx && to > h_idx){ + long f = find_section(tree, idx*2+1, from, h_idx), s = find_section(tree, idx*2+2, h_idx+1, to); + return f>s?f:s; + } + else if(from <= h_idx && to <= h_idx) return find_section(tree, idx*2+1, from, to); + else if(from > h_idx && to > h_idx) return find_section(tree, idx*2+2, from, to); + else return 0; +} + +int upd_point(struct node * tree, long idx, long p_idx, long value){ + long h_idx = (tree[idx].from+tree[idx].to)/2; + if(tree[idx].from < tree[idx].to){ + if(p_idx <= h_idx) upd_point(tree, idx*2+1, p_idx, value); + else upd_point(tree, idx*2+2, p_idx, value); + } + if(tree[idx].value < value) tree[idx].value = value; + return 0; +} diff --git a/1754/problem.set b/1754/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/1754/stdin b/1754/stdin new file mode 100644 index 0000000..e69de29 diff --git a/1754/stdout b/1754/stdout new file mode 100644 index 0000000..e69de29 diff --git a/2000/main.c b/2000/main.c new file mode 100644 index 0000000..aaff72e --- /dev/null +++ b/2000/main.c @@ -0,0 +1,22 @@ +#include + +int main(void){ + char input[3] = {'\0'},temp = '\0'; + while(scanf("%c%c%c",&input[0],&input[1],&input[2]) == 3){ + int if_cge = 1,i = 0; + while(if_cge){ + if_cge = 0; + for(i = 0; i<2; i++){ + if(input[i] > input[i+1]){ + temp = input[i+1]; + input[i+1] = input[i]; + input[i] = temp; + if_cge = 1; + } + } + } + printf("%c %c %c\n",input[0],input[1],input[2]); + getchar(); + } + return 0; +} diff --git a/2000/problem.build b/2000/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..e1c0315fdd33ff12499e17a17399f720a743174f GIT binary patch literal 8568 zcmeHM(Q8{(7(Z#(S#RMFa)&&8vK`s0761y)Osmms%*41`7`6 zyQ=beIfx%5Ql?6FFyhMxjQby}b%3BEZ~h7oZtO?%7@kX0GuQLY#+w1cll!jAh~dcV9vOhwssd z+m2HbM^GlprQ$>`o1BV)w%OyLVKlSD*%p;pb5abyYj#rKJ_w7-OS~at?Y5q+LEN8PC zyS?)mnpb1DtFb++_Qos#Lo8>*s%(TTr)gE1LzeTS-p*E``bfCEenU0GTTODW~8&0XjhscE7dd_@sZA}KO0}X zjOI17U0H{BYc+nfQ%&qysaTt4-(Lk-?fGe{;aeQ57vq@iR;}CZwiZ!gQ7dRM8s(1B zNZc_RvAbA66fVcSxx?2Z$NaSwLgeXnt8#tv!yoG1XanwUblt6+Zhal~OzrqrP}8&B zXbrlaK_yy$plgP2SFM}0j??;u*7LNsUV54KrK?JRskARto0P{c)I~8oHYG2m?NnyYg~tH%>3k_|voQj+ zh|^^IBGEWdDK%Fh5Fv?k!y%c^$n;V=RkqVO6Q5(+6ZyGpK}7k%Vp!C@Zy26Iw-Itr z0NsxikGr_{ZNvNa0Zr2tevt9w7XtW90KXoNx53WVJYw7dj OG2?Nf*f_u}#`zbSQC?I4 literal 0 HcmV?d00001 diff --git a/2000/problem.build.dSYM/Contents/Info.plist b/2000/problem.build.dSYM/Contents/Info.plist new file mode 100644 index 0000000..09786f1 --- /dev/null +++ b/2000/problem.build.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.problem.build + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/2000/problem.build.dSYM/Contents/Resources/DWARF/problem.build b/2000/problem.build.dSYM/Contents/Resources/DWARF/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..521324aabf2cfabb65d40186b8fc87571116a6ba GIT binary patch literal 9252 zcmeHN&2Jk;6rc5aCQG(;zS=ZZinM7`(N?YFrd3Lc6|j_$#tl%lA&F4Yuy!`iw)V!d z*J+$qrOK&=3kX$ws8Tp^LrACxg!l)z!4a;A14t3#4ifO*?5yi-65?y6dC`2l_hx?k z=J#f;?9Tr9*B}415u)jYkaj50Cof_pr61ZpC?|dxeCK2D;-3%5_}jmH+RtLrPC5y} zz6I?uXpcg<42AQnnW@RQCa=8#N<_4XzMG0TKf^%IXD1hCw~r9>;d;9XhE8QcKj*%) z=3_6AC|+j*77wnmrl8{CU~J>$ezVGX)vx8M4O0{^+Y#V(H%0_{s2UQFNkf3gmz`qS zsemntcSGVOLjY)z?}qG%FJJX5u2+x)qImB~yuk**_RcnJaB*JqZoA$hcfF+*p>NN} z*AfqN9!eA=v}22T{T&MD6PeizTBJZe_sc8p(GZ(+ugI(QQf{Tl%YJ1~yyk6!^Fu-Y zn|02M_W$8^%J}eJ2&H*`xbH&W)B9j%`t>W56Vu@ywj%440jA|d#A(`!g0FAkLcrI2 z=Gv2gmYb02&EAg!3t*sYse!2eb`F$wyHYCi$eevvax#)0_T$mHh zuX#R*FWk50;C}Hn;g#)t6mLr64M~`(7V*Sp*(JVP67P}3yVWAzO73PJr$pl;7lQSM z@sUPHUO+X90mXn~Krx^gPz)#ro)HG{d8$JT9zrze_X?em@VOZO6DlopXU)midkE_tOq|Uz{q_RwWBMVV4!{LYi%Z9tUh$c}zQOd~WQ@VWj)^>{ z0=f*G7XMtj)&o}=U)yLVxWR)H{fREE z8_vyRNicS^SNinCCG#cog`?9wFT-)Seu2cKX}Sk4Y>H6;KScDzxM`XQtD&oHfK2yX z1l>TFX^umekPMzTS~D|quUV^3rRuJD)>!gfGG(327vT)|>{x0fnM$4?OOBihcjoY$ zRTw$ET&ue|_~c=DVkKWIIi6n~w)3UokyI)bq}cV!HJ|uSsZ87@o-a7W6$uu}Z6x;c z^~`0t_i_J|0~i%ZU<*FjxcTm9cQN@QFVNyHLTR3hdUWo;AmJDt{8;*MAP8;@jWFaM z{!HjGg5%ML*Ur8F>-E(A2WH-SboVOgnB03%Fhl6ayuoSY++!d22f>u08B+}AFHT+( V!C+d^jHw3m{7-j2f?i93{|8S!OAr76 literal 0 HcmV?d00001 diff --git a/2000/problem.set b/2000/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2000/stdin b/2000/stdin new file mode 100644 index 0000000..a72b0cc --- /dev/null +++ b/2000/stdin @@ -0,0 +1,3 @@ +qwe +asd +zxc diff --git a/2000/stdout b/2000/stdout new file mode 100644 index 0000000..53b47a6 --- /dev/null +++ b/2000/stdout @@ -0,0 +1,3 @@ +e q w +a d s +c x z diff --git a/2001/main.c b/2001/main.c new file mode 100644 index 0000000..8280d35 --- /dev/null +++ b/2001/main.c @@ -0,0 +1,12 @@ +#include +#include +#define TWOQ(x) ((x)*(x)) + +int main(void){ + double x1,x2,y1,y2; + while(scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2) == 4){ + printf("%.2lf\n",sqrt(TWOQ(x1-x2)+TWOQ(y1-y2))); + getchar(); + } + return 0; +} diff --git a/2001/problem.build b/2001/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..1c0d6d668a85dac3e1cb3062daf14b2778df95a0 GIT binary patch literal 8528 zcmeHN&1+Lx6hF~A7Qd3Z@B=@1it!6y?~xy3`DX z>kWYr)?2Sz_}K5zuIv4z171Cq&EzLCMa07OvbtWUZcj|!o3dnlBPFMpD_qeH!u9Uy zdK-0~I4CW(kx;5!xRxu7s$600s*79KV^-JWnp23wHN1@X%XO_ol{(ow)EmfP{aV)5 zU*EvG;+|{PR;rL!rK$1s)x4T;ir=i~m*M@v{=Sg^AXX}$`oDTH^ym0C=>o*T{{DUE z*I#@N`c9ucW1l?j-@{gDp1_m=ck&{vqg^+?6VF*UJxin=rXAKF1E5&I%nxWw?wP*@ z%sIC2@Sexj@CTqlVOwg;{T^%pzixTg4TS}d35O(Wpk3usu`8cTca2WvM}a9@pd81M z$AkY4KRSNq>4)gUN@>r{U5J4?k+rK_-S1<@AbT-i_TzIH6kg{jlsR|IhhAdXk;QA{ z`h!y?Co|r8q7&oDrM=#}VR*f1%bUkOjmeJ@!+>GHFkl!k3>XFs1BQVgpMhke@+vX& zru$F(6DOOf9;>;g{4P;VzDQL2>wQ&wZdU62#G85F7QJ!aYxV$UAsVyaEkrNbb$I>s z`r!@#M)ZPc4qlR865jA%3(*V6ovY18>f6!1V*gj?yJ*G!XMU#9XdJ91X8!2D{Cgw* z1kpzPsr&mYentAK+wQ~k4mRQy*gIJU=U<~2zW`GnA7zPXjh5^HXVZbn882J7e=-3$> zHs!)ifD<^6cE*^rfJ!5&0)du@!g>8NHJ(+O$;?RE$>1zJ#d15wQ@Mh~xlyrPYTW9e z_zuI-hyz&7_S;vsw>gt_k#Z0}vxI~(Qy2_QYen1vJPrDIm^ Qn49zWXRhbGgfSHT0;`b=pa1{> literal 0 HcmV?d00001 diff --git a/2001/problem.set b/2001/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2001/stdin b/2001/stdin new file mode 100644 index 0000000..8a18485 --- /dev/null +++ b/2001/stdin @@ -0,0 +1,2 @@ +0 0 0 1 +0 1 1 0 diff --git a/2001/stdout b/2001/stdout new file mode 100644 index 0000000..064fc34 --- /dev/null +++ b/2001/stdout @@ -0,0 +1,2 @@ +1.00 +1.41 diff --git a/2002/main.c b/2002/main.c new file mode 100644 index 0000000..509c071 --- /dev/null +++ b/2002/main.c @@ -0,0 +1,12 @@ +#include +#define PI 3.1415927 +#define TQ(x) ((x)*(x)*(x)) + +int main(void){ + double r = 0.0; + while(scanf("%lf",&r) == 1){ + printf("%.3lf\n",(4.0/3.0)*PI*TQ(r)); + getchar(); + } + return 0; +} diff --git a/2002/problem.build b/2002/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..6c006a221bef24ae7b8dfedf8206da6e4e36891e GIT binary patch literal 8528 zcmeHNT}V_x6h5n2OIf?yLl_lZrIiZO{vIk6G+bKA%5!;!8?Fk3p~X;6ud<1|kFz(RRMMbKSew>|K}xbI7f+ z8{09wDqbl+#1qLxdN7gYM(+HQDqe#M01VzYWK(|eflRJ6VRyV|DxOyb0OohOr3ewv znb}mPPqlEzd!gd(QGQ^jl;z3}A@Z4_RHjFyGQ9&5m%rZ`6%T6&0_=`qd8{YaNr8(H zZLN`3hlkfg**dY;i({Q&-gayuGHH<;>5mPh#h{tpGM*g<>&?j<-lr1_k&gZ^o}c?8 zzZ#V?u(Q9tj+NW7uR7YVUk$aj+k3)r&66>tQ%;@;ag-_R>v-RuhGh_84R~4GIWQ!H zG5noMgCF=GGsYafwbuT|`|jl86tqPt+ds|*Y!?h`Tvs*mwnIu(&80D)%QmJ{vBsW} zbPr?5Auh;c{^6zixlc_`AO7$@cs1~5?iklGbwqo2%W~4jsADuQi)KJGpc&8%Xa+O`ngPwg z_G92yc;ah#Y}N4HUVI<=jr`YrfzVobs`(|`;i>%EEER6EIrh`z8^0*)nkQv5f7Ots zudS{7?v@@)v!23H_DqCU3jwJMD>KDn@yud)?45D{?Q}8tnyZV!dHG!6CsD`Lk>{*h zyNkgI*3(H;u6*Ne_yVMr&#;cb`p6d1!epeWYsuddO!rc-;as|xe-3-teV7ZxsquRk zzlYDWM!`2K1U9}ws=23M_C{^VkjV8IR^MxnlzyVLtC@zH0nLDBKr^5j&Gy|Fe z&46Y=GoTsJ3~VC?0(Jgwq#J0#<(#|>7csui<;&}vS(>J-KhPrj5@tLZm9U24Am1OG zy>J?ga`9*eK#522eSL-KPm08FBAz!Bd>0-?xZ3_`DnmgWR#eh5jyfQ=foh*e-u%e} ziUSf`=Nk682Wyy8g8X#iQ!b3N52xQ6*1F5Y{|Q)HoOK4@5O2;|$ecIkZ_ixKc@twC F^e?2z{|o>C literal 0 HcmV?d00001 diff --git a/2002/problem.set b/2002/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2002/stdin b/2002/stdin new file mode 100644 index 0000000..8664b77 --- /dev/null +++ b/2002/stdin @@ -0,0 +1,6 @@ +1 +1.5 +1.25 +2.4 +3.6 +65535 diff --git a/2002/stdout b/2002/stdout new file mode 100644 index 0000000..3177afa --- /dev/null +++ b/2002/stdout @@ -0,0 +1,6 @@ +4.189 +14.137 +8.181 +57.906 +195.432 +1178985671427752.500 diff --git a/2003/main.c b/2003/main.c new file mode 100644 index 0000000..0b84aa3 --- /dev/null +++ b/2003/main.c @@ -0,0 +1,10 @@ +#include + +int main(void){ + double a = 0.0; + while(scanf("%lf",&a) == 1){ + printf("%.2lf\n",a>0?a:-a); + getchar(); + } + return 0; +} diff --git a/2003/problem.build b/2003/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..3517c2d34a0a655412fba4d5c827ee5971ae9612 GIT binary patch literal 8528 zcmeHNO=whC6h7l$25WsYT@)o1pFdMn=%fiE-3Up^;1jK;CblBT?M(8<89JGSnK#rd zECVtAEFxLDQgB(MWa-WX1&bTOl?xXlwoIUf;HpUJ^!whsZ}R3vyKlJ%&Ybg|bMJZg ze)m0i@7{U(_K&}NL=qcCnj1vKf-Y_nnG+kH$WEvORcd7DSnho8%xOluCD9GviCE`3 z8Y(rGJ2%$d#P6T#j)}$?n{3v~7D{>UC68Vp@p?l&_aWLxE@_f3SZjX%7{OC5!TVJAK#1T>~ngyND?Lq8;$``Y+&X`v?ce< zUkBzKlY4^ak?TDIjSAaRyYBaB1NbdFxNa;gcuY7X*#_-v)N6f}a-nZxrZNFc>4kC} zuX^_-@AmYcxP9dNLl3^W_GCX|pibn&t-c-#F=LPem@oVBIgARg^97VSf6N1~G3>E?nY!mrX1~m09OXjL`%@TRuW1MKIH)oCF=7}n3>XFs1BL;^fMLKe@c(DvtaIa6 zXZCm7`gZAY?k~>wjg`)=I`c;#!FT2xtBcZ_g**Fa!kTm8pyeAY_0?+8%KlwM$ zZk63yD|ovW=RSTYO+Qg|tRI)1{$<$evfql~7Oqf4o5e(HH_VOP>sH#gFISrFcDsMc znSEqmc(~Bc{Dg2jbIhvHF`~1UjRlxZ$4zIti$%52U z=|OeT^~OtiAMOC0#(A_?WYPwzkLRldS`rH9^&8Y=Nx7HY@rLK(EIiM0dnWVcs${rP zu~C+|y+H{bhOLBulIZV0eC*?3PlNjr-0Oht>|11F__G-1zDKluaM|E&l>aAy3`S!% WPMp_|S@~n`%s-sDp7T1!Q1l;bfdQES literal 0 HcmV?d00001 diff --git a/2003/problem.set b/2003/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2003/stdin b/2003/stdin new file mode 100644 index 0000000..09f28fd --- /dev/null +++ b/2003/stdin @@ -0,0 +1,2 @@ +123 +-234.00 diff --git a/2003/stdout b/2003/stdout new file mode 100644 index 0000000..dfa1b44 --- /dev/null +++ b/2003/stdout @@ -0,0 +1,2 @@ +123.00 +234.00 diff --git a/2004/main.c b/2004/main.c new file mode 100644 index 0000000..bc25863 --- /dev/null +++ b/2004/main.c @@ -0,0 +1,16 @@ +#include + +int main(void){ + int score = 0; + while(scanf("%d",&score) == 1){ + if(score >= 0 && score <= 100) + if(score >= 90) printf("A\n"); + else if(score >= 80) printf("B\n"); + else if(score >= 70) printf("C\n"); + else if(score >= 60) printf("D\n"); + else printf("E\n"); + else printf("Score is error!\n"); + getchar(); + } + return 0; +} diff --git a/2004/problem.build b/2004/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..8c9ad14bd8eb364b82514c2e0d554848e99daa11 GIT binary patch literal 8480 zcmeHM-)me&6rQb(4Ylp;f=a~}*5XR7ki=i85893N>a8|SZ4+9Hb-J7Ex(hcqVSiu( zMFJ(kD8cw3{tF^LFt(8xA~72 zarR>XrAC}nBi&7O|75pM7#q1U9r2(ED^)8@*E((EcmumI8H5K+Qna^rn$wt#no3n` z^?Y^16~{XZLI}0PvVu9F6eQildd1|t!y2mMOJbrREDC!BYPt(5Pn>dZub(o<8l%6;)d7_PS{ zZ+xF27PC;w%l#W(68)K9h(|k$$NZw}u(Pj@96tKCbLeomC(^Nb!ltD4Uw@e^58Y{xkI5hLvv-jd#!=Js<`h3^?h3(%DOYRF$C&bR}x*P~? z`XKu;U-sj^jta+l8HF+Cy!E;3pgYkS8{?mtsn!Y;eXsW+k8&Q3AWxxiys31+-_yn> zKUORQmI2FvWxz6E8L$jk280-O7jC%cZ)V-aSIY@}8ZOq?e|GMYnPt&<1fG^m_PiA6 zoqNpMwr5 z=W6p{;OpV{fqM}ZWj4~&l^z=7`p>bf)R literal 0 HcmV?d00001 diff --git a/2004/problem.set b/2004/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2004/std b/2004/std new file mode 100644 index 0000000..e69de29 diff --git a/2004/stdin b/2004/stdin new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/2004/stdin @@ -0,0 +1 @@ +2 diff --git a/2004/stdout b/2004/stdout new file mode 100644 index 0000000..26bede6 --- /dev/null +++ b/2004/stdout @@ -0,0 +1 @@ +1.41421 diff --git a/2005/main.c b/2005/main.c new file mode 100644 index 0000000..a4cb7cb --- /dev/null +++ b/2005/main.c @@ -0,0 +1,24 @@ +#include + +int months[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; + +int main(void){ + int year = 0, month = 0, day = 0; + int days = 0, i = 0; + while(scanf("%d/%d/%d",&year,&month,&day) == 3){ + days = 0; + for(i = 0; i < month-1; i++){ + days += months[i]; + if(i == 1 && !(year % 4)){ + if(!(year % 100)){ + if(!(year % 400)) days++; + } + else days++; + } + } + days += day; + printf("%d\n",days); + getchar(); + } + return 0; +} diff --git a/2005/problem.build b/2005/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..0201443d4bb4f27f1d0a31c21c88ea54e1db7317 GIT binary patch literal 8568 zcmeHNUuauZ7(Zz`jk=mtR3>iqS{9jtZ4@UHCbY84GHm8%TM$7G`L`vIq$RmwEhr8` zzz_p@QS@z!_@FO)?BhV8dmD-md+0+Ssw5JjV8L$4;_r9vxovVg_v(Y^qu>4R@B7aA z&iQ`lUO2g@x9=zi+?$4!y$?7>4&n z%ySzJrChMzTNrMl`bUO+LSxL0(^1M6Qaafchj*^{^I4Ch7=+I1NfD2FjcG^4)j=p_ z#i^z$doF*z90*~mCv*!BdmTbL-$UBr=99T>VL4ld&!6u@oo`CFCnoQEa$tVxic`*) zF6##VeBbGOV>(VeC_}jskg{63k}qXszI16x;ol4H{xEouBSkdlxJoa zW(OizKeYtjy80~F70;Yf_L8zxkd@V9YN;TXo$|lt^V0D7V1G}@{~(sKkbF?S2>Nq= zM|1+>!T#QJ=jE3&lXQ|EI#_Q^=Zonk#6!>Bephw3|6a|VJO8$Q=A8FVSU%o>DJzOh zAviC6tNfFAZ`GKV5FvO%uwG4UU;#6J0d@wKYsvT*mYeIu^N0aI2BjSoZ+#wAM+p5n zu3zxl2@84{I$f=lrwjSibY``X0j4|)l+S*6qO#O}o=f?9{q}H*SVoU#Sd-K4XS-qSJixli*^n zvDmA9)Cq*^%ZRRVJK9X_Htem&%`cmYt-tQn?uu}o8|XD|FI8+)#Wr<}yU4XRa;n&d zif!oFBkW@LYBvH6yVo5?2#GE)n4@aY>7MWR`zY~>a&8Ch9(pyaJ(TzyTn+nnXI$A| zx_{p5_g}dYul*SN;D>fU`Ze7B=r`*6Ev`b$wT{(cX6O6SDr`GPXZJS@z+ai7yTQ9- zy!#n<(af~^6VVK|#;8Rcg;EAB_rBa4zXnTHne;vP^M}zhqIv@i|CCUUPxbG=&$Yd# ztqS78A~_!IgwNj3hbBf01BL;^fMLKeU>GnA7zPXjh5^HXVZbn882FDF7@v&Ha|+`# zJe*U9;WCBuVH{pxEQ_`%N5*I5<*bv=B^5jZxQz2?=MsY!P$iu#5oifWoYjxWVoqjP zvgxXm#aVcg=_ZO|l3yppNHSj%v89retB8|9aqTD$UawoaJCG8#3 + +int main(void){ + int numbers = 0; + while(scanf("%d",&numbers) == 1){ + int temp = 0, all = 1; + while(temp++ < numbers){ + int n = 0; + scanf("%d",&n); + if(n % 2) all *= n; + } + printf("%d\n",all); + getchar(); + } + return 0; +} diff --git a/2006/problem.build b/2006/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..4f2618acea0aef49dbc6d1cfa49edda865d9a5c6 GIT binary patch literal 8528 zcmeHNU5Hah6h2X_i&~TIgD5J!N>hKJyH$J;MA(Q|vuJg7R}evmWRo?4Y+REYbn#^+ z3I^`S%);$V!o^6(SNvnOP-rOB`4tn^BS|N)08Bx#!(8r|9jJNGJSP#5hmU zQK=F4+(>5^JwDdy6N8bPd}IoHDCK3Zd9-}#jyJObi$T*brkxneY0D~^Y6HeAdzEx~ z$<-aN2tpX|6VoHW!GInUZ?$pw@l-Bbn8=pk>y9^N;`N#S#N>TRmgP5E_DcEUCDWlh z-VY`od7==9r6V>Pl&Tc3=8GAXFOFT-xN|>#GV!?Q6yoj}ev4moUmGY&9Z8HNLM_<8 zj(rXGH?*&K=9XeBRV=9TXMUSZ0OIiY z;JFLpx8H*kgC~!>M+Spu*y&m)Fl9(DUW9Rssr@_fo_$Hn5$S>Ifevy26bG2?Lq?N( zw%-Qk8hf_;@8deyLnvWkUzU#NJ=_6y!|~_satmG)rX=f8`YYv9e<7dl&rB9Fz?3a0 z%;Wm%S33vm2T#_H?tXo0;&A3O_&}Y=$7^-j6JYuvyRcr4<9iqu&T{~TZ93;A>X&AN+J$>~FXYE@aBk;eBhtBaB7t(!1r-38Q8^AV^!?n3QB^+BZe)xtq{ zF*==q4}fHc^&fL7blCfAvih5I;bFZM{|4?>{99drhx)|ywi{51;a2<# zbUlYk=3Zb>j=$vQey6pK))QFqjKnj{0AI=?TWLVTnkn;Jdp|S_f3H$#^Y_hqjEw2g z^tKI+P}R-vzq>}?GdgIu+A?4nunbrRECZGS%YbFTGGH073|Iy%1D1jJkAdDDv0-N2 zJHX36eHpIOxF5#l_34t-r4;KOP?xgaXfCDUCcp{YM|)#zbb!jEsUm@qh{ApS3N@Zn z*=yO+ikHP*c#7e+kEilQiSvMBrOfb1gAy2YM-6;Q002v7T9NaiB&spi5m)0Mw+^l&SV+i^W$LSGT literal 0 HcmV?d00001 diff --git a/2006/problem.set b/2006/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2006/stdin b/2006/stdin new file mode 100644 index 0000000..2db78f6 --- /dev/null +++ b/2006/stdin @@ -0,0 +1,2 @@ +3 1 2 3 +4 2 3 4 5 diff --git a/2006/stdout b/2006/stdout new file mode 100644 index 0000000..ec10aa6 --- /dev/null +++ b/2006/stdout @@ -0,0 +1,2 @@ +3 +15 diff --git a/2007/main.c b/2007/main.c new file mode 100644 index 0000000..2f734d4 --- /dev/null +++ b/2007/main.c @@ -0,0 +1,23 @@ +#include +#define TWQ(x) ((x)*(x)) +#define THQ(x) ((x)*(x)*(x)) +#define ABS(x) ((x)>0?(x):(-(x))) + +int main(void){ + int m = 0, n = 0; + while(scanf("%d %d",&m,&n) == 2){ + long o = 0,j = 0; + int i = 0; + if(m > n){ + i = m; + m = n; + n = i; + } + for(i = m ; i <= n; i++) + if(ABS(i) % 2) j += THQ(i); + else o += TWQ(i); + printf("%ld %ld\n",o,j); + getchar(); + } + return 0; +} diff --git a/2007/problem.build b/2007/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..11f969127843210917810866237bf8788fdf44d0 GIT binary patch literal 8528 zcmeHNPl#JZ7@zD`U1~L153-__*Tod8xVx1e3Zm>vhrVK~tGf$QkRkut1d?={ywL8U zu#grEVb^+71P|&#M6iMv@v@+>_GA$cdkC@zTN0?ZVACqb-*4W$?8{sA=0TVbzI=b? zn{U4P&3iC!CO_Q!_0I={h>Z%dIwFLKgRkuo;)-yf3Go=%1uHc_cU+#9Z@fnDFvW(= zzqOcW3xP^4$~PB>Lv;Vduum8pwTb%-GeRjZchRHfQ#9Y~!>l5!D{qmDm15b-F@0>?W{ZdQB*SR6q5nCPZs}FBH z%kZtH-1?gP%lGfxt=|*z%iPBzEdGVhZsvP;^whT7IJMpJ$J0%|yA5}{gAVLb--w}- zPQBmnV_GFR-Da)rHkYXB1I~H{AMnGjDy{Pkst-Klz#d{T#n1 z*Y>YL%q{ejmmsg^@gq97&?nEYw@!=Neri8LOJ<#9RwRoM#Vj`2{`bTaR6t?Ld2*k9 z1d^O#HV}1w+w8;sIsrB`Pyz?#W%K>FZsdDLhGVR55wHkY1S|p;0gHe|z#?D~un1TL zECLn*i@^U2f$_=20xKS$RiGF@2M$PbePM zwtt?%g9^q&4$dr+5&OA_%`=a1yg#geH_HDLfM&x!2RF{UYgW4E!Tf`nn>p`73`ze2 D)P_6- literal 0 HcmV?d00001 diff --git a/2007/problem.set b/2007/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2007/stdin b/2007/stdin new file mode 100644 index 0000000..f9ef7c0 --- /dev/null +++ b/2007/stdin @@ -0,0 +1,4 @@ +1 3 +2 5 +1 100 +-5 3 diff --git a/2007/stdout b/2007/stdout new file mode 100644 index 0000000..9623b60 --- /dev/null +++ b/2007/stdout @@ -0,0 +1,4 @@ +4 28 +20 152 +171700 12497500 +24 -125 diff --git a/2008/main.c b/2008/main.c new file mode 100644 index 0000000..652775e --- /dev/null +++ b/2008/main.c @@ -0,0 +1,19 @@ +#include + +int main(void){ + int numbers = 0; + while(scanf("%d",&numbers) == 1){ + if(!numbers) continue; + int temp = 0, a = 0, b = 0, c = 0; + double input = 0; + while(temp++ < numbers){ + scanf("%lf",&input); + if(input < 0) a += 1; + else if(input == 0) b += 1; + else c += 1; + } + printf("%d %d %d\n",a,b,c); + getchar(); + } + return 0; +} diff --git a/2008/problem.build b/2008/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..a5c9e76c8fd025ecf84923cedb8e097117104b46 GIT binary patch literal 8528 zcmeHMPl#JZ82{2%UA6TkB2v-fYiUFUcUMsmMA?--OtGuc-BJ-`NH*C`B%7|u3w95M z#TYRzD|_(Zxp)xq(1T~$`iJ#a5h;7!dMheR6U!VxQ>v;rB8m%a;=K~=&eMU3eTXxxLs*l}oC+vXnhvQpMeeDA{egYV$X>6c#gPMr?lVRvMnz?8I}ya?kMQ~OWgJDa5Cii|;xL5Dd2iVMv8 zw9(|A_3s07j$_Az@9|F9X_Tn2Ez8jR9&G@-K zV9Na{%%d^$>-ME@pZoHYb8mgMc(QxrBz&Mwu4?FOn7DDE=krjzh?*1X;3mHL%fb7uD$ujj14i3*HxO{>}tM)(LOA}u)M-cHlI z?!3o;pKD&Xz8PzJ-S(3~^-U)}vx7F@IgNYh`55-)t}`51>$@n*XEuKbzBI;a-(O zn|qtX=o#0&=^Ypvna8_k|M#KM9~&KQV{OZTWxz6E8L$jk1}p=X0n318z%pPNunbrR z{$C6vPQ+)Kabk*>eflz7WpO`@%j;JvvLTgtVoELM{rN&h!=r%9xR3T1Sm^>)=QCvj zBQb^h`U7gIpz;^;^EE$@yYLLd9bd{6%aY_F#XQuGs5!@ wXqsA*ct-JKBba9%(fVN6;BJ(MO^~Um&&7@N{+yN0d2jyV%*~wlF@~Uj0XX|Hc>n+a literal 0 HcmV?d00001 diff --git a/2008/problem.set b/2008/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2008/stdin b/2008/stdin new file mode 100644 index 0000000..c65a9c2 --- /dev/null +++ b/2008/stdin @@ -0,0 +1,3 @@ +6 0 1 2 3 -1 0 +5 1 2 3 4 0.5 +0 diff --git a/2008/stdout b/2008/stdout new file mode 100644 index 0000000..2c500fc --- /dev/null +++ b/2008/stdout @@ -0,0 +1,2 @@ +1 2 3 +0 0 5 diff --git a/2009/main.c b/2009/main.c new file mode 100644 index 0000000..7905d26 --- /dev/null +++ b/2009/main.c @@ -0,0 +1,16 @@ +#include +#include +int main(void){ + int n = 0, m = 0; + while(scanf("%d %d",&n,&m) == 2){ + int i = 0; + double all = 0.0, temp = n; + for(i = 0; i < m; i++){ + all += temp; + temp = sqrt(temp); + } + printf("%.2lf\n",all); + getchar(); + } + return 0; +} diff --git a/2009/problem.build b/2009/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..9a7eca4ffb2f8048433146c79dcedaf74cae67dc GIT binary patch literal 8528 zcmeHN&ubGw6rR*yMXN~#MbXMCM*M+o6%j#{R$NR`wAvO$&>?BkCX&XIY|whD6u~M5 z1;Lwm6-4?EC;^4yNe~Z3iu9n8fTM}zS)J%Oy2$Y z{%e&Gp=Cl0*9jrQDC5h8xFalBLTpBfp-9=;e#*XVUpPl^t%Pdf9})9RB2db1`%-sp zi0U7y^$CqJH?cw&Mo8(TZaTDF3Fdpc4vRt4E8R|v%hOVbK-LcNK&% z-+CS4VXs5I&bLxK+f$_}RT@CEY?>U_;Qo|wEZ%98o@7My%0*RKPD`JU)}Yjr!Z zUutrrLCRw8Mkbe(nOxs>g=_cYxz5Kurw|8oxGiqYeJ!I%d9uB`-PeNstJzm?e|`Ik zXKpdKl)0=d3=Jf%XXT)i|7$)k4WAG8_k{fWv6R{Pzw$-UpYz+K6A=6Rd(WMhzxp1W z={S4ZKH1?t!&YFOz?4q4cp;cao65ff?^!D?ONe@?dT4JBfWiW1d#Bdqp6z#mxyJhK z?)$g~b|;Eo7|T-gy!!)Smo0bPfLq`-;gm!JN=vbjZ^>p7Eyzuab~Xf@G# z4=b9qqDc{LKA7#p=XD6~ttb?~=JzwduMa`9NM?f2=5Lw?^o*$9^i~ap0@bko{dZ66 zM_LEM3^WWF1`Gp+0mFb{z%XDKFbo(53GnKVqP9N2H6>ZEWLZpSlc}3EU6k z^7?#UJP`RvW1H+xIlbw)f|~#baUbpUvC#r5^u}`pT0#={^>uO}EmJpBy+tR5yYM*E zZ6Andaw5vZie=&{k2olvL3cRBGZgoLVxz+DxrTS{0Zmg$6ty4k4`7~s_}krK-Mdl# cp8(S4_gT1cUOH!~=DfImZ{>Q;OBh4a-v+-Fz5oCK literal 0 HcmV?d00001 diff --git a/2009/problem.set b/2009/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2009/stdin b/2009/stdin new file mode 100644 index 0000000..f422526 --- /dev/null +++ b/2009/stdin @@ -0,0 +1,2 @@ +81 4 +2 2 diff --git a/2009/stdout b/2009/stdout new file mode 100644 index 0000000..d5abae1 --- /dev/null +++ b/2009/stdout @@ -0,0 +1,2 @@ +94.73 +3.41 diff --git a/2010/main.c b/2010/main.c new file mode 100644 index 0000000..743944b --- /dev/null +++ b/2010/main.c @@ -0,0 +1,25 @@ +#include +#define THQ(x) ((x)*(x)*(x)) + +int main(void){ + int m = 0, n = 0; + while(scanf("%d %d",&m,&n) == 2){ + int i = 0, tar[3], j = 0, count = 0, temp = 0; + for(i = m; i <= n; i++){ + temp = i; + for(j = 0; j < 3; j++){ + tar[j] = temp%10; + temp /= 10; + } + if(i == THQ(tar[0]) + THQ(tar[1]) + THQ(tar[2])){ + if(count) printf(" "); + printf("%d",i); + count++; + } + } + if(!count) printf("no\n"); + else printf("\n"); + getchar(); + } + return 0; +} diff --git a/2010/problem.build b/2010/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..ef674a407fa4cc0d32e2d7b11cd1f456b88b45d6 GIT binary patch literal 8660 zcmeHNO=w(I6uy(B8fxk!8;PheEsl*Yk~SzrRLn>pPPNgrO+*E`%wIA?CzCiom@Epx zF^k7D7&k&))xD4`6ta*SYDltZF_kQ4F^hmvG7v#TXzHTl_uY42I`a};cX1Cn@0{=4 zd(OT0yYt|^ck}Zgd`J)|tAri=7k@z+~AfyJQdx}Fqqo7b7PP0Thz zDGS9?yl@cm*Bb^QEY+=hc-Tv5*YzIJ0k@t^r?OM2JYxQOXc>C(J+*kbOlrl@o@yUj5{m**s>`XyD=6gc^8~0htTvirlCgPJ>IaSOb zs@JaP=S_>)Uyr{#Po&Jo{;yuQt{2h?#Etd1UaBV#?yC#u-+9|Qciy`vLO$MrDO-w6 zw}y6A{1oonGxS12kehZ`h2c{MLhk)L3(Gk7lE39;VD?X*6k-bYG3YR~QP`L2{k9w1 zJbwWB%=OFT2!x;=(7sY3-zrI%f@wD@5&y9{}5$lAC z6UUXl;9V;QTfqId_KkqnsZfq0g>F%d5j5{iL>_9=?fCJ-n)}WUe0G z!1coXGn{keay|Sd>_QqBQTrWpO7oGmR;72E-Y@iCqPGDroD7ANA|!ChO&%AdTfJ93 zO$X9w`P|FrVr~reqJ9^o&v%gyWOk}-0R5Vwydy5t`aSSdZ9mucD{YTRF(Jc%VZbn8 z7%&VN1`Gp+0mFb{z%XDKFbo(59#RInPIZrPYF&epN7u2$6`4q1k>jOUJ}EBd#lj#D z?bIQ;jN{xGhuRD5pYQf%jKwlpH048xkEe=>bc{XoJ%Cdk;U|4ZQcD8H}h^W8yzTL`Dmhu0_7`kGi*95zMVeK;W0 Nqf(Q2XlpPD$iJWSmID9) literal 0 HcmV?d00001 diff --git a/2010/problem.set b/2010/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2010/stdin b/2010/stdin new file mode 100644 index 0000000..20ee319 --- /dev/null +++ b/2010/stdin @@ -0,0 +1,2 @@ +100 120 +300 380 diff --git a/2010/stdout b/2010/stdout new file mode 100644 index 0000000..2b204d3 --- /dev/null +++ b/2010/stdout @@ -0,0 +1,2 @@ +no +370 371 diff --git a/2011/main.c b/2011/main.c new file mode 100644 index 0000000..65e89c0 --- /dev/null +++ b/2011/main.c @@ -0,0 +1,18 @@ +#include + +int main(void){ + int numbers = 0; + scanf("%d",&numbers); + int count = 0, m = 0; + while(count++ < numbers){ + scanf("%d",&m); + int i = 0; + double all = 1.0; + for(i = 2 ; i <= m; i++){ + if(!(i % 2)) all -= 1.0/i; + else all += 1.0/i; + } + printf("%.2lf\n",all); + } + return 0; +} diff --git a/2011/problem.build b/2011/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..985aa8a33402ae1ead4357d5818063d084cdec59 GIT binary patch literal 8480 zcmeHMPiS0482?_9+NjmtT%`VkwYXX zEEOLiSUl-Pih_9T!GkAhu(G+?Lk}W7>_H_9D})ee8pQSYdv9L$?Tgj3FdsYbo8Nrj zeDlq3XJFo&pLYNF>!66!FLJq0L=q@+K;(*~Sd+(5vM5?ljJ>YjRcGE}Yp*!H@E;N5 z9K`@yPpWg1y)J(LWN(`ojNF)xJYdXPR|`wku5Ucv#G{xD%ukr4hzGjv1ec>w>q@nj zuk1C&<6Q(H40XtOggERlXySGAV>~@qC@mJsaEixUGVz`@0f@=_p6ttSdcm!9CmfG= z&BPlt0f_Nm-dD7qu2joK_k!_=$NR>_d&t;{qtcTr3|iOR4~p)LF1oV|KJNX0zcul= zhA71G7=a~ta-D3TXnksIax7xOdhq|!aGk_7*9qqx#@5;`>B{naexalntL6K~3&U`| zMS0`@8OCB3T9>B&EnX7+nO_)>I2w=nMb}|>U!5L*^9^-sJlqqh*gSzLDSz@JjAN>P z`w{HhQQtv?YhW-Xa@e;7j}$O|lEH(1oD=O!z}#0&=nVA3C=)1Ap)X5x9#K2%>#6SE zjM}j6{BgN&MrxJvNU4|~nOQE)7^f$pnMdR1_xB$B?0E8v-M(M?FL+;bUw}H1N3a4> zj)jN@IYp5Nn>#{-J zP}@WewMpfvJ1c72TdS`*UT*uO+DWYbh-L&C2!d>)+ZtN763GKC=!RANtJrC3I8`=8J z(epoa($~=1Nq>o_$m!LmJ*cs>o%AyF)j2k{euw`YPqwW)sIe)K%~#Vik{&)$n&o>L zD3Pa(C8{}No{L|CX1QeE-B{-t{t$X5{oVk*uMvI&A0M0dwNH)SGuVn{z%pPNunbrR zECZGS%YbFTGGH073|Iy%1OHnFhK?l9F!`YjFX#NraGl3}E-tU%F3VLZCxl whs`vx?tzVNe66u%h5!7zJwteFs}aC5sqH|^&Z&dbbb9|0WrZ?5JlOaK4? literal 0 HcmV?d00001 diff --git a/2011/problem.set b/2011/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2011/stdin b/2011/stdin new file mode 100644 index 0000000..99e00b5 --- /dev/null +++ b/2011/stdin @@ -0,0 +1,2 @@ +3 +1 2 3 diff --git a/2011/stdout b/2011/stdout new file mode 100644 index 0000000..e920ca2 --- /dev/null +++ b/2011/stdout @@ -0,0 +1,3 @@ +1.00 +0.50 +0.83 diff --git a/2012/main.c b/2012/main.c new file mode 100644 index 0000000..14bc515 --- /dev/null +++ b/2012/main.c @@ -0,0 +1,29 @@ +#include +#include + +int main(void){ + int x = 0, y = 0; + while(scanf("%d %d",&x,&y) == 2){ + int i = 0, temp = 0, j = 0, if_ass = 1; + if(!x && !y) continue; + for(i = x; i <= y; i++){ + int if_ss = 1; + temp = i * i + i + 41; + if(!(temp % 2)) if_ss = 0; + else for(j = 2 ; j <= sqrt(temp); j++){ + if(!(temp % j)){ + if_ss = 0; + break; + } + } + if(!if_ss){ + printf("Sorry\n"); + if_ass = 0; + break; + } + } + if(if_ass) printf("OK\n"); + getchar(); + } + return 0; +} diff --git a/2012/problem.build b/2012/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..c601d71f56bde72063872aa8a75e055e19552a76 GIT binary patch literal 8528 zcmeHML182&e@8fxp?C`d(%o8U@Ya1+IYP?SXba7(*3H7Qg<#%!`_7B-u(yTRtL z7~BTBEU7t~gC2Sikz#xBpcknqq%DF{JoJ!54pDYtg{1@5eapREOv>AgK}+;$dW{0i9Cf8M^S2I_)Yg+_w7^kwo9lT z{v%?ZJLss?n0t1ty^D?yxBJ9k%uOCLg*}uiq|O&;dD5A0V?P#yrVq`eh_RfO?2*M5 zV7`1|KAGQfb>@2?gfP|PriYLHfF6_YVdL=fsp(W^E|r6?Ghe~vi<$n!Ce zJm+`7Bp?pP`_G-9zx5uRJpR@R_t7A|gFdJ<$Ff z03`y<_7S7WJ=-q=bB#TH-uw6{>=BfpurEv7^B(K~yBhJv?QqLuaG*){p$yFDa|4-l za$s^HGYL$28in(?+V{q#O7gW&FMij5>(&>mvFG3ebt3!s>T<-#^g#|`y^P~~7!;24 z3JTlwoL}0+v_q}2G5+X6zL1)Uy&l6n(n&A+c_@yz81dF|*kJNw#WG+SunbrRECZGS z%YbD--DTh7Nn!Tk-t@7CN6hE);` z=W3$SooJN4KU_}KD~Wp9T`%8Qtt8g({aLz?O#CuLZ`4v7)pnH$?m9=@Dyl^Nu5E&TXuh`eg2@?eDQj`^yA=rKddyPU&7st zUeWbes6|dLA6$kS9&JX8&@0n))_zC&X%bpnr^VUTZo`UBMxv84I-AQa?3Gg|@R>~_ zpFyDnHEH5^_RG*L{8y#W=D*E8M22-Vy)8o{Q(Zs|^ItOh6QhHDtZf;v3|Iy%1C{~H zfMvikU>UFsSOzQumI2Ga|BHd%{xA<&q<4syeflz7C2>ED%j?rQS&>}0cSxN}6(**~ zH9P<~hx_Ql6dNNz`HAr?fsv5HeSMdjnO3RusfqbQ3U}e-OxHIvp3X{?hZNni!TUst zZ_w?8^i85Ze|S=3?>xgl?|`PMC5k$TU+BO*^9Z(k!+Lk4Jgb5X1$`0RIPadb(sSNf NzrS*`=3R^->E8f#S!MtL literal 0 HcmV?d00001 diff --git a/2012/problem.set b/2012/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2012/stdin b/2012/stdin new file mode 100644 index 0000000..a1ccb39 --- /dev/null +++ b/2012/stdin @@ -0,0 +1,3 @@ +0 1 +0 0 +-39 12 diff --git a/2012/stdout b/2012/stdout new file mode 100644 index 0000000..2c94e48 --- /dev/null +++ b/2012/stdout @@ -0,0 +1,2 @@ +OK +OK diff --git a/2013/main.c b/2013/main.c new file mode 100644 index 0000000..30fcfb3 --- /dev/null +++ b/2013/main.c @@ -0,0 +1,15 @@ +#include + +int main(void){ + int days = 0; + while(scanf("%d",&days) == 1){ + int i = 0, numbers = 1; + for(i = 1; i < days; i++){ + numbers += 1; + numbers *= 2; + } + printf("%d\n",numbers); + getchar(); + } + return 0; +} diff --git a/2013/problem.build b/2013/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..c043a293d13cdbe04fd5f66146489fa99f148382 GIT binary patch literal 8528 zcmeHNPiRv~9R8*LEB;Hmhoz$8Q_P}*t*#yfQCjg~MA7cHf(SAsO*DZt?Itg15hM}{ zRw?wXAR?Z{qen%dM@9Cq2ZcT8l0p}9=%Gk4e&4)#>C5Zx-WTTwli%k^ST%Ja1%Q{o^J*@lurQEF)LjC;lX^&+#K7VCunh{*E?8Y(s7 zULNUeqWdR0b7C;YChJUL3#Gi=O^=apQNDLuF&R`nH1))o&Wf#-+6o|F#j9p2?NpSn z2tmmAgJ}`qphLIeTW=CRpUUTo6S*>SQNEht>oe_%se9X2jc>H#l?$cora_eNnc<^O zG~%#zaHB%0YUxIylvRb&wQ-F**W-oZxz4>&8<|as4A0Vnen2U@XG(n7trwjVE@3Ve;6xOO#c^O0{uC@UPC|}?jPKD0sqQ# zaQ^ItbMEQ0!9DCm<_Sz2(vue^hQPzZW@3C$eRuE(Ze49Bd!v%YJ+g!^Z0zLt&jB^Ut3!?AXe+asA=R zikBPfJJpAA6f%DApWt}Cn&Z!7zrobUnpMCmU=^?mSOu&CRspNP_ou+6)b!_6eZiS? zmpS=4cZn`FbK;eD)urdss3EK`#o|+Zr<`*a@e9|C`H1emyLjAPiqAMYZq{GMrrqX! zxB2Q%KUmb6#rfY`trocRY*uZ8dKaQ;ccIavePh0k28Um!>TjH@uV-7yM@YAlkM-{p z{ED2P*?9+UaJZHH4StqXGXEF4<@qHy|AEm?M(+_Nvy#l>Mce6|f3e z1*`)9KLvXBB!)Tao&g^A>BDf9!TB%_uYW1atdtWy1L}It8_lOR>;;^_d9-(pl@3s4 zG+iPv7E?H{?^0uVmAjc6t$I0}g{Mikdn{cjNs=2BYvdibG-yG + +int main(void){ + int numbers = 0; + while(scanf("%d",&numbers) == 1){ + int count = 0, temp[120] = {0}, max = 0, min = 0; + double avg = 0.0; + while(count < numbers){ + scanf("%d",&temp[count]); + if(!count){ + max = temp[count]; + min = temp[count]; + } + else{ + if(max < temp[count]) max = temp[count]; + if(min > temp[count]) min = temp[count]; + } + count++; + } + for(count = 0; count < numbers; count++) + if(temp[count] != max && temp[count] != min) avg += (double)temp[count] / (double)(numbers-2); + printf("%.2lf\n",avg); + getchar(); + } + return 0; +} diff --git a/2014/problem.build b/2014/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..0038fd9680d93772fb64928dd13f9a1e618e0d6a GIT binary patch literal 8700 zcmeHMUuauZ7(eMct+n&EC{j^tI;_rt{WBCgi_p&1-MYHft898U;>z$rbjXw`i6}@Pw8&ii{mwnNO>Q!u748S$Ip6O) z-}%mWe&=4e$+_~^Z@2CgBCtb<`8pwl0TnxiutkuTcmQfbr5qVJGwD0A*B_awP-ow&9~l!&0y#aZU#bJ@0dUgT^3uml! zJTeDk9^li7ACE^DXOqJaY=MH-|Igv^>{db*={o zMhD79aDL>?Jx6cPbHy{Klwnd%PL&-iaP52z45lDI=et7w`JA{SWhx;vbII|kgq*h0 zRrwlpeflvI#NK@FnKGx8iO|30Yt{Mo=mLn#^KrjhwZq!m`9t+zZ>suH?5$PzX83%^g()qLX4n4i=KX-Wh->ip(Vahv-S-nG3+NfF|2as&Z&vnJQw%+SVl2~;GC*WXYX57J2CS2 z-6l;=)$fUZt5&pH09mjA3tU(UWR+38w^UA5<+e{(E!(H6Hx>`q7~vAeV$b%-hOu{1 z?Kzj{nJpCS;Q3<1clmN*!OS_AAw{tM;mDzeYQpfA|A* z1IJ4p@1S3bp%KNOQA&)TtHo=y9;bDc*3-1sXgx>k6IdM)(b2gtG0})GS|J{SQp$VO zqP~frLQg$}-)$7y{2kJSnayf8z1xODH5v=^xz=gjpVj@_x_?jiHKzJ5p8=l%p8=l% zp8=l%p8=l%p8=l%p8=l%p8=nN{}=-;yIW7Nq?UfktLsqslnlpC$;p{eIwD?5i=}>E z+Nn!&IgWc{Txu^dKHch>F%gOcu@EEEdjONsWF~46bpuV~HrtvY>IKS# zLn#6gkhs6ClgXHj&PKyCRup&WAuiXR48>ETgMV=B5bL}*rML#&Mu0bX&i@tnEA0Fi z;{I2Ho~DvcwB>lfgJ1CAV;+3cgF_z7dT{Zm?xJ~r%)3+m|Dx}H`)iE{al2f-Z>jcO aaVm=A3XgM6TZFq*yCiFRtBw!_LH+^MI!Ims literal 0 HcmV?d00001 diff --git a/2014/problem.set b/2014/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2014/stdin b/2014/stdin new file mode 100644 index 0000000..ab3e6d9 --- /dev/null +++ b/2014/stdin @@ -0,0 +1,3 @@ +3 99 98 97 +4 100 99 98 97 +10 100 56 78 34 24 23 45 14 12 23 diff --git a/2014/stdout b/2014/stdout new file mode 100644 index 0000000..4ee3f1b --- /dev/null +++ b/2014/stdout @@ -0,0 +1,3 @@ +98.00 +98.50 +37.12 diff --git a/2015/main.c b/2015/main.c new file mode 100644 index 0000000..8d9714e --- /dev/null +++ b/2015/main.c @@ -0,0 +1,31 @@ +#include + +int main(void){ + int n = 0, m = 0; + while(scanf("%d %d",&n,&m) == 2){ + int i = 0, number = 2, count = 1, all = 0, if_print = 0; + for(i = 0; i < n; i++){ + all += number; + count++; + if(count > m){ + if(if_print) printf(" "); + all /= --count; + printf("%d",all); + all = 0; + count = 1; + if_print = 1; + } + number += 2; + } + if(count > 1) + all /= --count; + else all = 0; + if(all != 0) { + if(if_print) printf(" "); + printf("%d",all); + } + printf("\n"); + getchar(); + } + return 0; +} diff --git a/2015/problem.build b/2015/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..3a5ec8e81273e0c7ad3ed4dd1027852c2e6c42e7 GIT binary patch literal 8528 zcmeHNUuauZ96o8M7TruLD3dw88%9*LRoR13gj9Dh(@m@GKomVBO|}G*tmF^24~0S; z>{>hLpBG`zLwuSdJ{K%z4}wK}=))e0L`|SV83n7z;`g0Rs5c=HBt%;eK2?|s=*-)ya3EmqE& zgecw>gNJ2mp&yhGHae7QRNgLDa;jK4b58r={rJ-0anC9AqZnR~cjdlz(3CnpIWrmP z!T#wj@b@*Mxv#kA`q)ZUN~*R{&Yml&xq9^<@q8HG9~|!s`49R^l`{W^m%w<|chCUP z503ZmJ0E}W9GpDy(u?x=3I85;BI|@tnbM0Ff;h(1@uPUoo}lFjF#4Ebc@AU1C4lc%xPwFBP-nxrI^= zKIIS^>*!wo<*OgxJ@&@?-@I_>^BZ@!9z+b(331?d-5&LQ#vl)4y&T8qFeseoX*Blf znxAT;?ATy#%s;(QtLMvO&yJyvV%8h|5ESQIa=djsVtn#r#WG+SunbrRECZGS%fSDU zfzxUCr*v~G)sla5`7OEYsU52H$}?ZYs2aQJmD4*{MW+n6xjPg;&-c}q-1d^U_(s-} z9mJs8UU1V>I%QdIPsrW)%14MT%dKJAc4d26cABd(S9V}b$esAbx6s>M+!XP5Mqy#{ z2>@c!8}M9t9f8LX(8GEhb_ysP?zK;rPi_46I{_PQWUnE+UxX=Xla;yh2h81E9dhLs z3et0LcQd_SuesQX#Vx4%7M`Rx;-#bHWk0;5D0zzYmQP)Z8_`XCH%R%M%Ggo4;-L zV`M^)W^`a^&s;8G4DmlS`m)i%9BW$!ECZGS%YbFTGGH073|Iy%1C{~HfMvik@ZVx! z^k`z56_2KP*ryM}RTk&NIJ|zPDlUm?Vl<`B=IgVCjCK#gox^!_{R}%Dc(vI~g^rP! z!g>9WDi>6KK0n*2=W!OEA>5I2rdSb4exw){>pV}S_y)uA7{8u)-yiPLzV|)D|K0&j vQ%e%pp#ONp=QodFzc;OSHp>4KKvKb&gA?byH7i|nfBpW-&6@Wx2GG9%%2Q?J literal 0 HcmV?d00001 diff --git a/2015/problem.build.dSYM/Contents/Info.plist b/2015/problem.build.dSYM/Contents/Info.plist new file mode 100644 index 0000000..09786f1 --- /dev/null +++ b/2015/problem.build.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.problem.build + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/2015/problem.build.dSYM/Contents/Resources/DWARF/problem.build b/2015/problem.build.dSYM/Contents/Resources/DWARF/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..5ca050bce14bc37007565aaf00a3712e2c43a693 GIT binary patch literal 9150 zcmeHN&u<$=6rS~DHf}a?odl9LZ6pJ&5>V?nX+ce~080r?n$V&W(h4D_YiHwZVy`WG zwa3I|S{Ipk1r<-ma}{{RwIg~Soj2zYOH#%wkY3AY~RRrBM`d+*zs z?~SAG&iwS}Z+~?XVo*Xz7Zm7|D_BW61MMj&qmMrS;)kcX?JpM}Z(BdUHj9Fic_gO z4H%2#ZA!eX0)Q6zZpnf9m70FT^~%yAj`yv^gJrjsec0f^dEkBQdQ05(mTN-apO0OM zhdEag$57+gVqSlR!ueETp@1V&AfHF&75AvZ=G?3B=0>$xtMIztI213sO)y>w@*mYX zuh{>EmzMLx--428yxMol_V4dte)h)P^wg}{!U+P4a?9uz&h>NMl?+mrLd zzaJ=j8PObCMezKM`a!(G@o>FE5@GO#L!pF0;n@w_D?7~t{EbUIn5K~NW8%r5!2vv5 z;ysdh_A&A7VzJ@eJDA_$iEzC)B;N3gvU5nI)(by=;StZrn#9|Z@oPuo+4XwG;Uc*Z z6UTcZ@zlP3@_+E^b}5cGaw%NzIXSGy|G}XO01UpE_xTFChl>2ZT!X%WgNLl!q}>>LpY@u_e#S&Z zz$}1*`fD~ogZqqvxyz(Ici^FUW`ZMttSz%NeclJdS1@#)t}e5)biilnJY9VVA#~6W zSb|nRGe0ruP&Q%0N(aT-p(1!{_X?EOXAS%ef}ci0(|6FiUU-Y(0`x;m63wj-CD986 z!XT?%Xu}HyNx^J4xhO4{p;e?}bcxe+aemA5ZnLGq1&U2jSO+nBjq|B~MpNm*GpSyq4-U-}Ss3gy z-#SH8SFP8rk<+vNZ^BtOy-X5vXto~~YzZ#_IY(&f4a*Y8&;>kE%*@X(zLUAj+v$@P@sRF087bkNQ* + +int main(void){ + int numbers = 1, ac[100] = {}; + while(scanf("%d",&numbers) == 1){ + if(!numbers) continue; + int i = 0, min = 0, temp = 0, index = 0; + for(i = 0; i < numbers; i++){ + scanf("%d",&ac[i]); + if(!i) min = ac[i]; + else if(min > ac[i]){ + min = ac[i]; + index = i; + } + } + temp = ac[0]; + ac[0] = min; + ac[index] = temp; + for(i = 0; i < numbers; i++){ + if(i) printf(" "); + printf("%d",ac[i]); + } + printf("\n"); + getchar(); + } + return 0; +} diff --git a/2016/problem.build b/2016/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..6c994c64b86970fa820887c0ca76fc71cbf3d3ee GIT binary patch literal 8700 zcmeHNU1(fI6rN2}jWuyoP>J<#TZ~p8l2$6D)YzmZc%x~JZHlER8Tf=U*&4|$Lv()Ii1&fV5&a<)jxqo#NrSPX`ab1@|7t)Ardtzy1j zm9kKri4|(5V7wCmgz+BG9=`5RXw&g-(FQM`OeHhZ$vkYqco`kGLu?F4Ig@)eolD4cZemL5jq#RrJnlJ(dN77J;`Q9uKDDny zgX4pBBiKLU=I>*WvtB%Ns?kl#$*H<+g}!~fHae3KpYwep{(Me+k}{W(g}H2ODkG^}Yqdk(dap)DPCPd}G~&M#kpOPc zNq;LaglD*HaXw+ARiy!dV4N~aCf7ZG9%{4H?WxtCpN%g}EFU)(FiEcoqc^s6WO zviZ+e{g^M0VLo25Cb|Qb2wFQ@?@S@zn@Pud6LXmabkew3=nky8O*`8xPs3RSN z6X;8RzrzPVz*1RFtEvClw)r?8y0^}Fce_Qw?aoFkuz^>%0ro1w6M1#SzM zX%%6c=hMpdYPGszkJn<2)uhpyWYr|!ucT%iQJKT;Mdo(nk+N##LOIPd5pIfZZ zs^wfm5pSy8DuQDVVKi*3Q)gVoD!r{HIxY*S97V*EP0{iq9a&Tugx`rU*EUm1Dxu@D z)(U)t>byD^mP3w8QW?T(OI{+I>+^Cr%2HAm0CVgCmhSfdz#(1jXDSOkW|ha2Dm_DNmG=S4!z|(nKc0UbyAK}ghn08;V&y?} zR%z#VuvjJh9pAJLuZC?Nm=7*n=dbe7dHKpZdQq-+Uj?gnUsL_6>c3X~H|R&*`#%I5 zJXP&>!OJOhqVgMRNb%TO`H|8il)k0(1f^9EkS8@-D~=H;2WBkHNT+w$C}qoF`_}hAYc$M2p9wm0tNwt zfI+|@U=T0}7z7Lg|4{^X@9R3v(smC>UR_7y=VUx}PEO85^9k`nUX%xTX{Rp9WeoSm zxYRDwKi?IYF%eB?FqDtLKA9}WQ&D>6_e0GlvxQ`l+5u?OxXmt3Q0s$Mh(~i&L`dTP zwnb)BGC7-!&lHomLyt1u-fT3T6W#oRl&2G9GLaktXZ>Hh=Zw-J1r z;nx{OJ?QK8!GQj3KtCDK&j$2pKxaL;cvN@Myg%mMDZjhuyWfHB#v{00ZeF)k>u%T; Yg>i$$+ou}fKGZ(Q8s4TYL_wf`0A>9v#{d8T literal 0 HcmV?d00001 diff --git a/2016/problem.set b/2016/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2016/stdin b/2016/stdin new file mode 100644 index 0000000..dcb99d8 --- /dev/null +++ b/2016/stdin @@ -0,0 +1,2 @@ +4 2 1 3 4 +5 5 4 3 2 1 diff --git a/2016/stdout b/2016/stdout new file mode 100644 index 0000000..2338837 --- /dev/null +++ b/2016/stdout @@ -0,0 +1,2 @@ +1 2 3 4 +1 4 3 2 5 diff --git a/2017/main.c b/2017/main.c new file mode 100644 index 0000000..ce0cef3 --- /dev/null +++ b/2017/main.c @@ -0,0 +1,18 @@ +#include + +int main(void){ + long numbers = 0; + scanf("%ld",&numbers); + long i = 0; + char string[1024]; + for(i = 0; i < numbers; i++){ + scanf("%s",string); + long count = 0, temp = 0; + while(string[count] != '\0'){ + if(string[count] > 47 && string[count] < 58) temp++; + count++; + } + printf("%ld\n",temp); + } + return 0; +} diff --git a/2017/problem.build b/2017/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..c95a6f863cdd49f9fe907eb4f0d960c13faf52b6 GIT binary patch literal 8612 zcmeHMPi$007@vg}ivn9Xm_;R72y4(o%O4X!ZPGQ}@G2nHmIO_7vj5uMu-$HU-$r^X z!FO1f)gC-xVvGk59yoXq;=xFRB;^Jn95`?=1Pq%1X*{7OF2CQrdGx)vg)<@ZCG)=d zzWKi2%>3rPWZuk`fA9bQf)J6_Ld>laLPSwSuMm!ivnDp9SSV7CB@d)NNquyL-k?N+ z=86_^ZXi&~iPW))V2H}^5Bh|*F*XiI6-G#D=TF$Ixe~@(T93(~sjLS@yT=Qr?h$i- zQ_7lM&(t2f!g!y75JGLz5uWWO^l7{`+Tr5KLcUbVSK$leRW#m!j;BrDA4}KxvNgL} zEKlixFy8kXZ=G(Z?Uw*H8leEle5 z{fnx+>Dlx_c3{5D<9F>B_QQFyjbrZFeH+UcS?(MCkI&ZZ{Pe(k0~kj!gCNN3DD3Zt zxXa%g+9p3n3GHFkl!k3_K4E9JLyEtdsY~usO0?L*GTH&i(mcr(-pHmuNMG z)kr;Dbnd~&30sQ}n_2x?+}+ENMd!wHqgQP>mlTR>v))lj(bjb$w1)VHfPR(`0g%64 z*sIGRmvyz_EVv+Si~fGPml>!25z#L`W=_)y`Uj(5aevt5e>>XZ{~G)RwoWZXtcF{4 z5wwS3?XNqCXbpX<;?FT2BYYoL!}*QLO?N^r1}EE&F{9agQDvZ$!w;?fm!l4M(7P6_ zlb6Wtr+?gqDLRQ?)bqT0{)*?J))sb^9PcC=(DU4Ti}qiDEO6`EzR4OlrR{5|C9q#k z)C3fE!)o9E8Z^bPx!>h}_$_D_ss904=Re3gWcI6U7{T8MGHFkl!k3>XFs1BL;^fMLKeU>GnA7zUng1~zVsjdO$>hb6DB)7j%PTR1MK>gj4u zd{`Cp!@RUpm*g^odt+Q`&ojOn3uR2EizPHw +#define MAX 65535 + +int main(void){ + int numbers = 1; + long temp = 0; + while(scanf("%d",&numbers) == 1){ + if(!numbers) continue; + int i; + long adult = 1,cowsa = 0, cowsb = 0, cowsc = 0; + for(i = 1; i < numbers; i++){ + temp = cowsa; + cowsa = adult; + adult += cowsb; + cowsb = temp; + } + printf("%ld\n",adult + cowsa + cowsb + cowsc); + getchar(); + } + return 0; +} diff --git a/2018/problem.build b/2018/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..c378d6366034d04fb2f3e741972bb28ab848c0d1 GIT binary patch literal 8528 zcmeHMQEL=e6h33D4Qky@5mD5#3032el{v6Y%O5yVn1yV*^4VY7zaSxg>; zg%HT13%1WbTIpkcLP(|Yq0kUY*@r$vP{~3Hd0a)he&5WU?ChrPbA@~0%sJn=_nf)+ zyE8Cz?{9DZ`ujr>t4E}=M?@mfrM)5x5`!ml4C+9Y8XdW6-?qQG!Dy#go$wzK>(tRv zsd4+(cxM+cKiU}+jWIU)Kr4GF40BPWi$DiOcAl}db7ITpzcph-gjiz_$EqjF;|$<9lGm1 z(e-+DJ8@V#YNJ7^a^Y^SkXE_Ejh=_d@w%{@*l=Z<&*zaFN%DQ@2D<79L^7( zyP$siJ-B}Dt1s;<*Mes_)-_LH%BVMa5!TVJ7azcTc9vdDglpCd8;k)^V!&)4)t20| zeG!;*?Ctm8#{=+3pgBsmBjDwm2w`CMu!J(o`dQ;tJ9 zj&C2Y|N1T@IDuzZ1cu^{so3@ zweOAlkIj|b%=F;pL5w4p^0QCD@P3t;KabNIlOH370mFb{z%XDKFbo(53y4VdmDBGwhp`I^mzUT{B6Y6(0_i}s@hwP z72c#aT=o+;(6J6>!ZWA(3r6<|TB`QbO@5tL?d3)S3Fnrb`KO8Res0AdBif2T@vcAN zdcAhC3Ntd+iqFA5%;F-ASIEio53cbiy_59T;l+4^&;Oc($c%c~jJ6#Qg)WQw|L+HFA88xvVqC+3VZbn87%&VN1`Gp+0mFb{z%XDK zFbo(5-ZKXJ2BKpea$kanecoZXO5uDMhu2>h<)IX#eF-&{aVN4#4;}@a!FjYh$;KE^ zX(Cx5&|)c^*Y8o&S(Ta1OqAUW&cc%{*FT-i6(r7$iXN$OYl9Lv3`Z>Po%ov*M?CEB zX#{&7uyj3%;~K_ix-j=W!tMTT{j*VS8bK1_SPUo5yT`1&G4ISjn7N+wF2+#w9iJm1 AG5`Po literal 0 HcmV?d00001 diff --git a/2018/problem.build.dSYM/Contents/Info.plist b/2018/problem.build.dSYM/Contents/Info.plist new file mode 100644 index 0000000..09786f1 --- /dev/null +++ b/2018/problem.build.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.problem.build + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/2018/problem.build.dSYM/Contents/Resources/DWARF/problem.build b/2018/problem.build.dSYM/Contents/Resources/DWARF/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..d34f037f75e398735facf0b62b0c2c1a3a8f5dc9 GIT binary patch literal 9360 zcmeHN&2Jk;6rc5YHcp&4U$jj~0xk_oTBz-$k=nFTX^;bn2~f2maRbfBA8ThLdu`df zO&lSmN+nc@1Idx7QmYC$^-v)sazOk69H8P*afd7aK#+jg3x~i&NL$2gTJSmwuRvIKO}+=W|oZx&0pIdbriO zvZmw6YHqxaHu&){HHJSzG`~GS=_j|HD(6+*NLTA7H(tEm!h5OiVd=IS5O}gMSa^I{ zDU_88*xYzof%m2j0MZfaA@OCZdPUXpb^QJOeI@W5DRv;cuwjOCLt9m~ELXK$$<+7b zJr;PFbGz+}&o&B)dA(rfH9k2v>6nCk{##ygk7CEhdA{UGE9i&g1uS>-YOh5F`Nw@? zH_o*Juhxp`Qh}HC$^pE9h|jt0+<10Q5tH*m>Ywm>1m3V607xeu=EoWPv*&7d=Dl~O z;xqO$5q9w=0-O-Ih-309bi~<(8v$Pnlh@u7RuC~4PS~2-5)T97V0=N#4C}K>+Q{>Q zswrqX3UA52c~~qwLfCj^Bdw*1O4W_GG-Abve~+*&owVdpR|lS6D<8zG3A`ZzP-_q` zRY_@irF!7^J`i|7quCxbh$kMa19(pa-p>N>NrQN)bh@J4I+%}#qZWUvzEX^t@SKJBnOGk@bp((wbDk=f3ko-r3pO|2j=;0`?aqI}E2lDUyr%+hP~87% zgLvje(?6bcJ z9Ak2e?@TxAmUTAx8;j~C7LdPY1EBgQSd*M*vYcQYIo2#MvJSA)1nbYS!368sWONJ6 zH`ohcZk7!e0@*Ra=mZPGx-QWC2|&xkI*>^~%7agWwaRxG+h%Py*fG$0lLD|U$xi23 zEI~_;m|vz{N%kULPr`7EwaA>c177C@^PA`fW3Y7K5o22rKqrj*uJBvj>{Okyv=-6-IVD%^p^vhjL0;V^D*G^ z1W;*J!?BKc273L&3D%FEO??ZRs_EnhkX3bE!7>yK33(m5|w4YD{QXv!?dFH5bPcVtwuk9tyBD ze@&dFxDUIB((Ugy44ey?D0F*wW7VmCvr$8}7iXaqzlj&Wj9L?t&_V*AfCw}ZsZ)A2 z)Xiw9<3wMmQ|f{$yDtL9F8N9i4P6Xg3J&$obiVOffnd8@XU*Tr-Mka3q=1Y84Wl zRn|x%k` + +int main(void){ + int n,m; + int ac[100]; + while(scanf("%d %d",&n,&m) == 2){ + if(!m && !n) continue; + int i, index = 0; + for(i = 0; i < n; i++){ + scanf("%d",&ac[i]); + if(m > ac[i]) index++; + } + if(!index) printf("%d ",m); + for(i = 0; i < n; i++){ + if(i) printf(" "); + printf("%d",ac[i]); + if(i == index-1) { + printf(" %d",m); + } + } + printf("\n"); + getchar(); + } + return 0; +} diff --git a/2019/problem.build b/2019/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..9ff629dfa66618c35fc26961b8fc0b564bc76764 GIT binary patch literal 8660 zcmeHMO>7%Q6dtE(v7p5%f-3w;+k&BRNDL~Ht5TFyG1)+X&>E>lpsD{7TXh`cA7~H< zSMDAx%P2^#1b3v0TMk6(p+Q9;5+o>9#i6RWR00%BaF00DeBbP>Yi|M^xy(yu=Y4P9 zym|A@t~8$c>90TU+#^I_hY+;^Aw&p8>=eQg7B%rOij5-W%=l#N?bz`*XziCkKin2E z&P_N<8IPTe_q(Y6L;W_PF>+%%s?bBqO6F{Znk)Wzkv*6Un)Y!r5aK~sb)SQx)(fR9 zSE|W!*W{1)G6-S3VeR2zuR~DB+ocU|JekepiL%N-~SNdY3LCR|3gIpmkbA{Ojh5O?z>v&vq3b8+i+u}aCu2HqF6XWsm zo))YhdGprMUvpjY&Z$B-Dd!e?mKAvWctJW-5TE@$A^*MWEM*}t%Zu~Lg}f|QN?YOu zb$_eD6GwGN1Ujc*8oLr8^M!#^ZchJh}T_O;5f4YHVW4`z9xgQ1#WjD%bwOks_=aQr8#e5o=@+b=P_~gQ=$sgZ~d|tbF`S!6ZM?ZQJwjmU; z=U!Ew^)PLagP1S-@w@I7j>B(?ZOnP_`Csum1n!QF@lPz4E1CI`VKcQ{Nm2IhUxc(kepE1L#p-r6&M)ob4-}PG`-TrUkO* z%xJBtv?C6EL#+bZFw!k1(sEA2W~W+owZFbSUsymjlF=o4loa(D8r;ziAJ9Lty`T zKj?;d0=Umu~Z{R7!bn9^rGJc{H{tWd}md5t)7(UCbYWo*zPgA==?FDM< z(86geoEGZe68M9L4YB*%;4vzY-kN(}?uiefW|`#5La6h1$ZqU~hfuV170=+Wi~4uq zhq^wmYrZl6+1Ve=V8ei6z%XDKFbo(53GHFkl!k3>XIfR|fVT7>+Z6yRGsY`O1#Jw>twU_8$8us;=P2}=uDp|14Wh$v`f}W*= zfJNM2S7wPKK;=}TK%gZcakoDp=d&_%Hj}DWGPpZWaG3q`iCjU1d9blVEc48X;wdzT z0=&6%&m;CJ?4E(}e1c~qsJllMBR)Lt!>{=8aUVYA!yKRY%{;N={V2~^^!@Ibzsw=4~kfcy>4b@BiJ literal 0 HcmV?d00001 diff --git a/2019/problem.set b/2019/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2019/stdin b/2019/stdin new file mode 100644 index 0000000..eaa356c --- /dev/null +++ b/2019/stdin @@ -0,0 +1,5 @@ +6 11 +2 4 5 7 9 10 +3 5 +3 6 7 +0 0 diff --git a/2019/stdout b/2019/stdout new file mode 100644 index 0000000..d912ec6 --- /dev/null +++ b/2019/stdout @@ -0,0 +1,2 @@ +2 4 5 7 9 10 11 +3 5 6 7 diff --git a/2020/main.c b/2020/main.c new file mode 100644 index 0000000..6922848 --- /dev/null +++ b/2020/main.c @@ -0,0 +1,28 @@ +#include +#define ABS(x) ((x>0)?(x):(-x)) + +int main(void){ + int numbers = 0, ac[100]; + while(scanf("%d",&numbers) == 1){ + if(!numbers) continue; + int i,if_ch = 1,temp; + for(i = 0; i < numbers; i++) scanf("%d",&ac[i]); + while(if_ch){ + if_ch = 0; + for(i = 0; i < numbers - 1; i++){ + if(ABS(ac[i]) < ABS(ac[i+1])){ + temp = ac[i+1]; + ac[i+1] = ac[i]; + ac[i] = temp; + if_ch = 1; + } + } + } + for(i = 0; i < numbers; i++){ + if(i) printf(" "); + printf("%d",ac[i]); + } + printf("\n"); + } + return 0; +} diff --git a/2020/problem.build b/2020/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..f3dcce065b8550e278e14dc30c52ef3c4445b6f6 GIT binary patch literal 8612 zcmeHMPiS047@wCW8nyaT5s7GJTa82uNh?)SY$4GEUo_QdA_h?=o6RO!y4i&NgUu~< z^A5}NgAC|0Ao zr$(Ib;3(zjz}RS`iyGh7XcJmTZcIlNdPrGJpDnT#NE~l*KVAl1Kk#KB)SH85@N5=~ zQB}%9u{2Sro8oxmAcS~#YL8G42efLuo3tUolQZe;d^!(X9IvSHy0kxaooZm&m0zk* z%x7}bb^J#D-qm>Ii9$Up4cO?AvXpy0lbe*8+|-=X8}UBSc${+z^*Bb*6FfPuJ!)S2 z`$qdBJ(xf87S3b5X1-W+s?bf!>AA?XLf;#&mCh94b9^Y|KdMWa%gVyS?8IDF&KL8$ z@LF|#dYK98(ecEKt{W+{$$!IZ*LdwZA?i^)zHhij=(6)&4Gli`>_Gou_)R2Yyg{d| zDKdp1j&3UZVJz{ZY$b#sH?63Zjy9zyfr5G-HSL^B=J+0TVx2rB#0=`&P=-;WLSGhs ze>akLjK5`%&O2aBpy2Zp-K9dlJDZv4o?OUILZ{q|!aN>-=Cgwr)*gFc?Q~-J%3pJT zJP2DGin#q&RUQd-+8~{HUykE<9Tlp4PxdkA=0|_R^jSNx5r1T%P)yHuJ=ujkG81ru zJcPn{?<4~L9@aYfF=7}n3>XFs1BL;^z<!T5{MjIi7GT1KXSK ztJiBa2HkYWbj$Hi{f-}Z$Nz+u3*y@Q(8}AE?dI6Hto&@3`<3d|TCKL}4#N-7z!=pS zo@zazFm1mVeLy|0P~CC(I4Pg5&c=^Tj%^Arck-oE3aETZ1sC?R+872#?@eW_`284Dy&G`H)^&PE zmV72#aoObsPnCCh!*WvJlrOEa8%g(~vX}42*m~+tYRe0UpG0?+d$D8dUS#}{B{ja{ zvfm4yKA}!**#6j!z=q(U^V0#mRdQLrf}Fmp1Tj4~;-+mo^Q5?}XR1lw07ms~JmPGI zv-mPHDqmJJY%kpf1yj0(3RCw6s*2mg%=}Xyu}gD%QE>~8apiFw9`U$uVRA8Q5f1R< z?y}+@WiG|P(c!hM!@||-o!)jZpDy>%n4xoDa5ca7`8BAb*731=UR2LdX%a*J!Btd! zBef0}^$PdjqWTM>&2al#{hlpuOsn6b)iEg&0-NDr-+vz)kZ6t7srJLiQL`lRpN+yc z|AXwuKDZ4GHFkl!k3>XFs1BL;^ z!2g?p1Bcs3nBjq5$*b#R>WoayoRQO|WPVb-kQXbxytGr79grnshGxHd6KY)W|Ntm=-^?-KC#GS zFiO~<*|yZppgPImX_$?Z4Bi9sK!fKYsOx7NykC#%eKCD7rVqz-#^e1j&k}itqVH~d gqxJ-Dm3O~~RPWKirsAf-67U-mr77CQG~!bJ0dTrwga7~l literal 0 HcmV?d00001 diff --git a/2020/problem.build.dSYM/Contents/Info.plist b/2020/problem.build.dSYM/Contents/Info.plist new file mode 100644 index 0000000..09786f1 --- /dev/null +++ b/2020/problem.build.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.problem.build + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/2020/problem.build.dSYM/Contents/Resources/DWARF/problem.build b/2020/problem.build.dSYM/Contents/Resources/DWARF/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..b6a24f1a4a8354edba1d3df0622c23c5d067c599 GIT binary patch literal 9272 zcmeHNL2MgE6rJ^WHXCo^Bz4;)N-H^SP)pTp+_Vx+2?1A08;ej-8&Ve#BimU!8|<}Z zuiK=uO5jw91K|h)8dW_a1QLf_dqEtKiV%t_l|v?TT~!fyvgmN| z_<~-n=vC@AIadj8}ay6@Jn1v?(cK*H;c%Be@kbT%N!g<}iVVLvWF!N@Xx#Kyz>#yyKXoyX8sGWPvGIZZVFIKK5>&7>~9 zJT;ke--)=7H{swoPJ)6sHm|nk;H<-qfUm2`%NIm1h=dO(?hKt34~01BpXzkO{CPcF zFYuya>e#gxp61>>E++0FT)av>Yi3G%&5x&@a{R;JBP`mWBlo&`@T}#^PP~-BJ0<{9 zE#hUW8MC0*c06xI-~o+xskDeEUaK8=YXWaw;H|ZYm&sjP=dRoHNB3|{baU>(t7LM1yjucq zNZ8+M5zk&MyZCok;5lp%a<@gia&|F?F8KZ1f5v%U*T4O4L--qrfPsL4fPsL4fPsL4 zfPtsQ0PfYgBxlngLHnSs6XNcR@t;d+f$K|pu5RhDPtDB3K9!d;hWWHy3UC7k0tNyG z0tNyG0tNyG0tNyG0tNyG0tNyG0tWtP22Q}HKST}#swDjx?S!j@p8=ps1ULDboxLEW zJ>-57IKbpc=x9v-m?`ql?67RH&^T+83rvP)cb>J&*Y2>W{5iI1p5Dl_leB$<#W&cY z-x%GLud#?Sc!za?MJ&$-@~mf^g*5;x$g~#HB-*L51IjA2C+v1i*2~< zHMk~!3o|z9J87Br!xPbxCDWT<$aDa1O=POCh8S?u3)DE-ZOqG^fZF^Jg887Wq0c}w zOpAO4vS!@WF|7nmLQX<;%$&@$%c}SMfo&)*-+**du!Q=@=miZK15ff>W5`h5cr0XQlg zw6H({{?N7!A9bE6OCXdsBK1hmL}QFbyL$(sJ<>kNWkYPS@lqd+o>QM!kM*ZwFG5JL=3a?k*Q+(7 zY{tj5Q(7W^JXeHV?eJJ)R7+^5$F$LB-4#9ZdJQZ`7V67J7LH1cOqO%?l5SeHkxZ^M zGMX4oIB_-Wr7RedOpX}D$n)F+vGh{Kj%+ik(^rzy;+3&8?LenpoIWRqzxeJa4UD`U z6p*-buz2U9?w|V)6xRk<4OaKW0ImuN&InLA@4_H2FN^a6I47}kTg`s(%auv6c@rwe f3H`x94H0th_&NJd7%S|?&_Vayrxq@gmc05G=SgJ7 literal 0 HcmV?d00001 diff --git a/2020/problem.set b/2020/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2020/stdin b/2020/stdin new file mode 100644 index 0000000..64adcec --- /dev/null +++ b/2020/stdin @@ -0,0 +1,3 @@ +3 3 -4 2 +4 0 1 2 -3 +0 diff --git a/2020/stdout b/2020/stdout new file mode 100644 index 0000000..e471eb3 --- /dev/null +++ b/2020/stdout @@ -0,0 +1,2 @@ +-4 3 2 +-3 2 1 0 diff --git a/2021/main.c b/2021/main.c new file mode 100644 index 0000000..e9c7bc9 --- /dev/null +++ b/2021/main.c @@ -0,0 +1,21 @@ +#include + +int rmb[6] = {100, 50, 10, 5, 2, 1}; +int main(void){ + int numbers = 0,ac[100]; + while(scanf("%d",&numbers) == 1){ + if(!numbers) continue; + int temp, i, all = 0, count; + for(i = 0; i < numbers; i++) scanf("%d",&ac[i]); + for(i = 0; i < numbers; i++){ + temp = ac[i]; + for(count = 0; count < 6; count++){ + all += temp / rmb[count]; + temp %= rmb[count]; + } + } + printf("%d\n",all); + getchar(); + } + return 0; +} diff --git a/2021/problem.build b/2021/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..4a6549640ef5d0370b4e40e98cf1ec2cb6438721 GIT binary patch literal 8692 zcmeHMU1(fI6rOF8Hr3WmUnKs)wlp=C(!{FJqQWL*^@c{1HW7n=)BQ_!>1Gr52OAJc zskiicT?j%R>Vv-cs3J&S3YE2%CT|s=d=RNd=6q+) zoH_H&O_-gz{?~7}cL)(_6JlYT5F&~))**x~V$g(m0L4O)a%|xF#4CxDqqMe4q!r!~ zG0t~zlyV|5InnB(#&@;agvQ8CARSfcA!Q|drb5k=aJ*Byu^4pyu9G5e_nq0ci-jPR zvRtXA${VI|ypte=p}Mt)kNp9iI^K3|@Z!l_wlJ41!4{5J(D9CHe`4~!AzSiGmn)@w zaaucs<9)2-ktYgqP+DT6L&|FL&3rK<^TnxIg@tCa2<&kw`zgX4W6|G|Bha(XuKnQV#I zh4IXaef|CV33ju+GMh=cLCUVo41B4s97Nor?>TltIYc>Z@s99-Y# zNKf1RI~^H*@pxir*#8@gh4ulM@`u_SFDI=k`#vES`l-b{ZaUHW-zv>OIW{c!!4N~)h0<3om--6%R9|MkkO8JV zgu*;NJ^sbJCw3egeSh%p#NhnRpZ3EB>V(*Rk17X!OdF&Z>*YB9p9l));riIeHMSr5 z8T3as=f?cw^W{o*=J4QQe~)QQevB9f3GHF!29i;3dns zX`TJ`Mg+$ux8p+`B`jB1PGWtyG(=SUM9Tt%$IFyiH@pA(kk+x+kW1Q;@F4O=!}Fo0wC0<7`;=h*uhB83Y3_X8~4Klg=o z>)2}4=1KMOx^?y{_xJU$*8oMcr><(!)9ksb>T9Tl7^yw7gl1s8*<+(!%+c8R1xe(1 z%xrv5?NMsqQhSQpDzu)A=*i&tiaEr?D3oA}Pez?zpG3O61n!pJT)n$}H4 zp}SOX>ED6pb-SqB4|MAfXFs1BL;^fMLKeU>GnA7zPXj zh5^ICe}{oR`?}Rj;hwnU({(a^TBdWS<#aV!%7_!CuEjVX+0-MsOyS)akJ<}sxRX#4 zSrn!2(8#G|z93+a!9Ja>q;tsQjz>gwCll<8;Wc>cx}{pT +#define ABS(x) (((x)>0)?(x):(-x)) + +int main(void){ + int m ,n; + while(scanf("%d %d",&m,&n) == 2){ + int i,j,if_init = 0; + long temp, target; + int t_i = 0, t_j = 0; + for(i = 0 ; i < m; i++) + for(j = 0; j < n; j++){ + scanf("%ld",&temp); + if(!if_init) target = temp, if_init = 1; + else if(ABS(temp) > ABS(target)){ + target = temp; + t_i = i; + t_j = j; + } + } + printf("%d %d %ld\n",t_i+1,t_j+1,target); + } + return 0; +} diff --git a/2022/problem.build b/2022/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..f650a2e57b538a96c4e489a1e8c0b4a1d6b6d35d GIT binary patch literal 8480 zcmeHMUuauZ82?hM7WXG9s7zG24kOOt>SPbfn543cceuE@H8=!0YnpTkq*=)yZH2-h z7QBR%u_s@JBJ(YedrVQRh+rT35W$B&=x8899`;aF7Jt8c&rNSq^<6k0`R@1keCM3s zITudu`RR|}A3iP;c|_#an21Ed&2f=cv7m`O19relU7mi&{?NX1iQZv~44eOGu}&L_ zO3m2UW`R7;sY-UKLd~bqdc7l<3_>64LD9x^_Gw&h?HjCDu2j?I zforthJOE*-!#X3dg9a12-ecO~*HgJ{VKG~RZ?s-T*LzXt(oJ4!Hh9B{tT-RN&Qs<{A6Y#$Ku506u+!t8(5i=jQo7u2I2 zuE+6(_s#x$aPh)>@7m`t1bf&TnI~+L_N(K9~Fa)kCRC`_7--$AC`c$P*sF64>;CUdDXcj_+ZZ_&&V>W{hJV zfBjd$9g#ub=>O_+xsqKt_4X-@BcDbR=p``wTeN)qPH3C>7%~VL1PlTO0fT@+z#w1{ zIEX;Xaes4a-Rqn7Uko~pb9W*X)jg+?deD^J4`9~z#-ghUD4RCV_7K~?*z!e>qHg!j z+I!K)edwEZ*LQW#+7F_Q77SE=%dfnHsu5OQ*%jCRF}nIB!*zSdaqTvGKu9{D(pOvA zk?0yviaOlt@SJ$M~h--H{XZroVcJ(}0uX7YGOo@M)>h?CA_2gD0*WvBQzrs`GV&nM+#PrpEdjRc*crnB#!g9r&-W&!1n)3JVyl-mOMlAjC}@@d;|a6NYwd%;4seCF|ekA z5;y|+ng0K`re)wa(jZ_EFbEg~3<3rLgMdN6AYc$M2p9wm0tSKqF9MUtV^=u($pkO^ zyvuNv#{DoZuir1pZ7Ibj6KW9`(3N>w$6%G`W{Wg@iYVMmj;V#5$}VN+s+BD6zGvC| zg@xICQR4oEWRLfUq(GrN8sWDR|C`3sp6!3b;KvDm+khN=r{Fzf*giR8``rxgY!iWP V;U@Xu*pxT6U|xDg2LM19@;9%XOpO2l literal 0 HcmV?d00001 diff --git a/2022/problem.set b/2022/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2022/stdin b/2022/stdin new file mode 100644 index 0000000..6b88fc8 --- /dev/null +++ b/2022/stdin @@ -0,0 +1,3 @@ +2 3 +1 4 -3 +-7 3 0 diff --git a/2022/stdout b/2022/stdout new file mode 100644 index 0000000..c37b850 --- /dev/null +++ b/2022/stdout @@ -0,0 +1 @@ +2 1 -7 diff --git a/2023/main.c b/2023/main.c new file mode 100644 index 0000000..ae9100c --- /dev/null +++ b/2023/main.c @@ -0,0 +1,43 @@ +#include + +int main(void){ + int n, m; + while(scanf("%d %d",&n, &m) == 2){ + int student[50][5] = {0}; + double avg[5] = {0.0}; + int i, j; + for(i = 0; i < n; i++) + for(j = 0; j < m; j++) scanf("%d",&student[i][j]); + for(i = 0; i < n; i++){ + double all = 0.0; + for(j = 0; j < m; j++) all += student[i][j]; + all /= (double) m; + if(i) printf(" "); + printf("%.2lf",all); + } + printf("\n"); + for(i = 0; i < m; i++){ + double all = 0.0; + for(j = 0; j < n; j++) all += student[j][i]; + all /= (double) n; + if(i) printf(" "); + avg[i] = all; + printf("%.2lf",all); + } + printf("\n"); + int good = 0; + for(i = 0; i < n; i++){ + int if_good = 1; + for(j = 0; j < m; j++){ + if(student[i][j] < avg[j]){ + if_good = 0; + break; + } + } + if(if_good) good++; + } + printf("%d\n\n",good); + getchar(); + } + return 0; +} diff --git a/2023/problem.build b/2023/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..9c497748a779cdf38d138a83de450c02369bbd65 GIT binary patch literal 8708 zcmeHMTWl0n7(QEya-VI2T7#N}xQaZKi02y zV;GlBRznk?lox_eh6jou!K|pX8WV^yhz1oCHQPjA8jUD~_5048*~_%>X5z#A>6!E2 z&wsviW_CK~{6D|nxLt_AEFm&=LI?v*%of5DA#&nwG!sqAt*sl|cDHSNhT2*R)QU4o z%yS8jQtoKmwWHQW#RqG3Ld&R)<)}svDbul`G&zU7`7-k`8JJGjJ9f&Nbrkg?<1o%u z%2ax=BUM&;^F0PYnD0LA;mU5n9G&krt#I+V!mW0lm?|GeXz4oU}+{-krzGy0) z>`ioQ2XDT2biPJyr(8`nxnYoUFtN8c(J6ZqU3-*VyB;TXKCU^5vNwlgajsm~X0@&x zT6eToS+IV@&0R-t&vnI~Q;lv?CgL)+ufJnYTn?m@kY~re?-KFnK5`{JFDNlVaJ$6KpTY`>U!;@Z&@;@bGG;J-s)r)mFU?*A>1hqalV{ThD4&8#r(wyWdT z=HC)ZuDz($3$@y%HgYZhP4^Y>cT1h^x9v*?F#Itium=l&$s8S z;B^GqXWoOd-5xjXvBTi(bM0A+D$^c)TUpN9)*&#(hgBt`bTaL4vSU=5S>;r`3$}6V z0yL~EtGIO*t1@!K(2QGOmTlzLSuEAaZGjE5Sj*J9plFV1%)ZYTn}G>4nxnh<@lSP> z>~omi2dv-9L!DJwhYJB)F_VW&rP5@j0A*mZ$vzlvR^ImrFrF(+84XqezBj9MqpH-w zY^D;kiw{g0E6z?CyHpxCowvlJs3fZ<4{r<_%yG~u|nD5)5WY$ zTHdi+@d<0OpJ z!Elze77VpQ<@I9qRbVg;!C*f#7)koSVI$eGCd0fLc%115JJ0>Pla8C6>k z1CD%lMdfw$0O@5F^9qz+kp8}*@_YyffV2(WxOE(Uz@i4Op>nLdwF}DQ81x9b=_ZfC zcB|d3(L(J+5>q*-YVR_dCXCnlU(2|~A;5@9z8&i=PUp(rx3SX0XOy2Y!l100gL2?x zX1p(&ob7Rz?ql@g{2|y@8bWcMVh0%gCN6jk{RIslL)oXVnvYHx7GI867tH;i@-g+o zCw#OBV}8CAz6hoizND_-sq1BR{Q*}Y+H?0FLD#yy6dpyN@1b(?S5(u(*VM_&76qiHnkM*ZwX-cag4d7He-9@PxQYsorP!Iu$bKE-F z-y>r~vFKnrhO_hthh5qq=}m|*KXA+vnL9L|E{#m@J?Gw6axAe&yBR) literal 0 HcmV?d00001 diff --git a/2023/problem.set b/2023/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2023/stdin b/2023/stdin new file mode 100644 index 0000000..6bf21eb --- /dev/null +++ b/2023/stdin @@ -0,0 +1,8 @@ +7 7 +9 9 7 9 1 1 3 +2 1 4 4 9 7 1 +6 7 6 5 2 7 6 +9 3 1 1 1 5 1 +4 3 2 1 1 1 1 +6 7 9 9 1 1 1 +7 2 6 4 8 9 1 diff --git a/2023/stdout b/2023/stdout new file mode 100644 index 0000000..375302c --- /dev/null +++ b/2023/stdout @@ -0,0 +1,4 @@ +5.43 4.71 5.43 3.14 3.43 5.86 5.29 +6.14 4.57 5.00 4.71 3.29 6.14 3.43 +0 + diff --git a/2024/main.c b/2024/main.c new file mode 100644 index 0000000..b48b841 --- /dev/null +++ b/2024/main.c @@ -0,0 +1,40 @@ +#include + +int main(void){ + int numbers = 0; + while(scanf("%d",&numbers) == 1){ + int count = 0, i = 0; + for(count = 0; count < numbers; count++){ + char ch, string[51] = {'\0'}; + int if_pass = 1, if_read = 0; + i = 0; + while(if_pass){ + ch = getchar(); + if(!if_read && ch > 32 && ch < 127) if_read = 1; + if(if_read){ + if(ch != '\n') string[i++] = ch; + else if_pass = 0; + } + } + string[i] = '\0'; + i = 0; + int if_true = 1; + if(string[0] != 95){ + if(string[0] < 65 || string[0] > 122) if_true = 0; + else if(string[0] > 90 && string[0] < 97) if_true = 0; + } + while(string[i] != '\0' && if_true){ + if(string[i] != 95){ + if(string[i] < 48) if_true = 0; + else if(string[i] > 57 && string[i] < 65) if_true = 0; + else if(string[i] > 90 && string[i] < 97) if_true = 0; + else if(string[i] > 122) if_true = 0; + } + i++; + } + if(if_true) printf("yes\n"); + else printf("no\n"); + } + } + return 0; +} diff --git a/2024/problem.build b/2024/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..b69ea341675b9ebae4fc23dbb2969e81761c48d6 GIT binary patch literal 8700 zcmeHMUuauZ7(eM+t<`xuankvZY*?Lw{i6=s$)K6Nc&CkaYYU?whcro>&?GJS!&~GpQ|$Z$1D|9J8N*2f`rwO1amL?w?z!o`x6x-G?g!_5 z-|su$`R+Ntb1pf#=h~mY{(U!Nu04z`G%&^#6xPJpB6E|)4xnf#oDX_lQAgENZ;;n2 zE-S2yD9;ZFRwC#Fox3S2*5GX;|%KlL|+_@{kh2 zsN8tq*3J1R;A=%;ds{?##=zu*fZqk`NAI;+2=<^*8;!Z~xu5XbyLO(9=MT*$lEG-l z@eYh5Jcc01lPL7O4Y$tU(-IRujyMcB3^)up3^)up4Af^}M9baQ(!We=`KC)a?`V0Z z<aE18o5sHJqpqnx8N6CMQcma;^Lmo0S#H7nDB zL~j_a4Hi*8W3YOZ2(4A!rR-(RKT=dS`}ZT3WxW@a49-uO)CyD1m$K@Gv+9Laa85_$ z^0%mHu*&8@lRmUhte!5VU>;J|+S;ou(Z3;629Gs<$l8i|*y1r6bADSZ2+{dnK_1Dk z)yk{Ibjg)di{%FJE+#1!3mffgL}H_ru+b)A=G6Dg`-SV+XFDyl5;^rfv2@sMBG-C( z@lLf`9z=z`e4B!?m-F6=)_YZ1q@#OxNlSk@{pJ_juvxYJx~Ol6`bSaU6!k6Cj13eX zy9DJKswB_}kad-;m&w|M)gEB8!Nk$_L<@^e2}Qf< zQ4|uh#%>qq;TNE(^veH$WaGWV8Qg_4F7*~tGYm&P9g_b8<5IsZ^*d58OI@$8<8v5r z7;qSH7;qSH7;qSH7;qSH7;qSH7;qSH82EoNuzNr zu*yBT|I_*EM|Wy7O3?6YAS4=x_XT{PVv)0Zsz216f^Abs`P i-MC%eJ#Q}NZCMq;vBjgWQ;l$gYJ+4+@2(}(2lEg6B>m6; literal 0 HcmV?d00001 diff --git a/2024/problem.set b/2024/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2024/stdin b/2024/stdin new file mode 100644 index 0000000..81978d0 --- /dev/null +++ b/2024/stdin @@ -0,0 +1,4 @@ +3 +12ajf +$%^#_A__f#@i8x_a +ffai_2 diff --git a/2024/stdout b/2024/stdout new file mode 100644 index 0000000..f31899c --- /dev/null +++ b/2024/stdout @@ -0,0 +1,3 @@ +no:12ajf +no:$%^#_A__f#@i8x_a +yes:ffai_2 diff --git a/2025/main.c b/2025/main.c new file mode 100644 index 0000000..43ac80d --- /dev/null +++ b/2025/main.c @@ -0,0 +1,20 @@ +#include +#include + +int main(void){ + char string[101]; + while(scanf("%s",string) != EOF){ + char max = '\0'; + int i, numbers = strlen(string); + for(i = 0; i < numbers; i++) + if(string[i] > max) max = string[i]; + + for(i = 0; i < numbers; i++){ + printf("%c",string[i]); + if(string[i] == max) printf("(max)"); + } + printf("\n"); + + } + return 0; +} diff --git a/2025/problem.build b/2025/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..f99ee17530d87eaf4c4c1860f86998d8f4f3b4d0 GIT binary patch literal 8660 zcmeHN&u<$=6dpHmYn8yJQiZ}V$*nL-QI(V*hXfQ6qpom70)eJdL8=D-N^I43B6}?y ziApZDC5&ri4)lVA3V%UvaH?9U+MGZ|95?_csA3835kk1%H#?iGH-R$}^Q50TF>~qKmYjqkPx9EA?gQ&5EfK~g=mT>TjCLD0xIQV{1y9c`_0$s9hA@@+!wLV zj|h}<$v(F<7^3n=2Yo_gjE%!l$_Oc)Y|UZIm0-QmhcFp*y`%?4JnRM24vV@UN?CEL zsmhKkSZ@)8u+*52@UWK<(e(~$hg(nPvW2y58NOh>oUS*eauI;5r z^;1jWt!uz?UGdB*WtNmHtG;FZ$9fS4Q&5ljo{)e4I!jq9$jW*#wOWvCPI*tgh#sFe zEaG52K6jo-SxEj{y)j)csuPI)^*CRuC%f;}{M>7=+NbBdcOn|#4VdzSBGav*o63J2 z@9inJqC$|H2&}?rQ>LQs`&);lpKHly`72b6D>lG(koOpQxGHFkl$?KQM4M(fTcM>Gv+?nrMfA3DJl|%ig|YU*Y@{otZqHooaVO zY(0wR8`kytaM!wiwmp5< z`iLKobbbim2Mg_o)vTc>aIa6{LgA}!*t80B7#3kiJA4-&lF?q+PE2oFO^*DT8;MJ| zNY?ppwlHha?Z>``>BnxV>uq)2#C5*&#OE;aGyT}du-zOkqIVCKbNpoO{lpeOMtk40 zMXGw6XvHcbmKNj1WbK5&7qR+H^*AiWZ~4v3Z{p`+sr;QvVVl20MvytGvgzGzD74R| zrhf;%uk96WuWGwbig6hR3GHFkl!k3>XFs1BL;^fMLKe@E>L1$nmiy4(-US zk!+#-TR1J4AUbkg=T17tmFX!oP+CYiF5g z9H^2`mJ~Qe;FJs5l3RmyL`dRn|9~v!WVV(~SDh@*&Xc^&v0^e`5;1OU42iC{*Woqj zwn99)b2l>{R@mJG;YJMOVcAqNfvX?K19&cg7X$cQ0Q3GhU{wE0I0(x<7Ja@u8|;hX f^m*_6q?+FV>x#nxkGl>Yp_)pM#62s6F;MOUb_im> literal 0 HcmV?d00001 diff --git a/2025/problem.set b/2025/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2025/stdin b/2025/stdin new file mode 100644 index 0000000..561fd68 --- /dev/null +++ b/2025/stdin @@ -0,0 +1,2 @@ +abcdefgfedcba +xxxxxxx diff --git a/2025/stdout b/2025/stdout new file mode 100644 index 0000000..072efd6 --- /dev/null +++ b/2025/stdout @@ -0,0 +1,2 @@ +abcdefg(max)fedcba +x(max)x(max)x(max)x(max)x(max)x(max)x(max) diff --git a/2026/main.c b/2026/main.c new file mode 100644 index 0000000..fd27fe2 --- /dev/null +++ b/2026/main.c @@ -0,0 +1,18 @@ +#include + +int main(void){ + char word[64], ch; + int if_word = 0, if_work = 1; + while(1){ + ch = getchar(); + if(ch == EOF) break; + else if(ch < 32) if_work = 1; + if(ch > 31){ + if(if_work) ch -= 32, if_work = 0; + if(if_word) ch -= 32, if_word = 0; + if(ch == ' ') if_word = 1; + } + printf("%c",ch); + } + return 0; +} diff --git a/2026/problem.build b/2026/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..14a86e1daf7749de84045ae08fd0ce729caf433b GIT binary patch literal 8612 zcmeHML182-0SYt-mV6=X%l*W%jhA<^QYfNx}+KtP##o$+?SC0C$UnEx@yhO7U$}!83w!fhRyiQ&rFDu z{mGa7-6&Nr{2O1^@MSp|7;%!1^NoKatl#;rPM>=3UGL>M z!FT%#BUgml48v=Tn0CTNfp5Yy&$Z+juK|OlRf->H21>^NvaeR8dJ`GHJ28HAB?~jx&j2`cF4=#Uwy;A+^1>{CiV@BTraz;yMw*1#` zI~{JwU;WWvyw&{Z<|bn4=g8jAeWRb(@I1ZzTo*1s+0V_xuT=4n-XGwrax2^WmC;c~ zcM;`Etfn~6GJqvL_r2T~zXs1ThyQLg#{4fbf}W$gH?uo|Mybb&`5*X&@oUDXnptQS zunJfOtO8a6tAJI&Dqt0`3RnfK0#*U5!2dvjLr1baDUm}HidWZ#(j`@@UQ(5IA()nP zfvimM(oSEJt0L}=ajCt+_CYq)W2R86qbhKbuav`5wZN9aF~BD7ufv(BpJWv76Zfgv zsw!V8m)c<&cjX1r9-b}K8j|B7#(udMpKHVc(@sX;4C;f6r!ANjdEYU8l@n(^~0c##L AR{#J2 literal 0 HcmV?d00001 diff --git a/2026/problem.set b/2026/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2026/stdin b/2026/stdin new file mode 100644 index 0000000..03e0be4 --- /dev/null +++ b/2026/stdin @@ -0,0 +1,2 @@ +i like acm +i want to get an accepted diff --git a/2026/stdout b/2026/stdout new file mode 100644 index 0000000..41fa02d --- /dev/null +++ b/2026/stdout @@ -0,0 +1,2 @@ +I Like Acm +I Want To Get An Accepted diff --git a/2027/main.c b/2027/main.c new file mode 100644 index 0000000..9ffedcc --- /dev/null +++ b/2027/main.c @@ -0,0 +1,44 @@ +#include + +int main(void){ + int numbers, count; + scanf("%d\n",&numbers); + for(count = 0; count < numbers; count++){ + int if_read = 1, a = 0, e = 0, i = 0, o = 0, u = 0; + int if_work = 0; + char ch; + while(if_read){ + ch = getchar(); + if(ch > 31 && !if_work) if_work = 1; + if(if_work){ + switch(ch){ + case 'a': + a++; + break; + case 'e': + e++; + break; + case 'i': + i++; + break; + case 'o': + o++; + break; + case 'u': + u++; + break; + default: + break; + } + } + if(ch == '\n') if_read = 0, if_work = 0; + } + if(count) printf("\n"); + printf("a:%d\n",a); + printf("e:%d\n",e); + printf("i:%d\n",i); + printf("o:%d\n",o); + printf("u:%d\n",u); + } + return 0; +} diff --git a/2027/problem.build b/2027/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..c0182efb102a6ad334b52067a2d00a1a213efe8d GIT binary patch literal 8536 zcmeHMO>7%Q6dw0CgcjQnp!`&9O3j}jp(qD_RFR;L*ouS(5~Qk9HL)G1ws4%tKcYd3 z6yZc=vgHX-)W@eqW16(*E&6D1| z_q~~U`{vtSX?N!4AHUr>$e3?0V+(s2V}9t`KE{@q1&^_Zpf*&9(V^G*IsWz;infcd z9sVt%JR2Ag}Y-abUm546Xa#;A?$*GeOV$i^;a$y3sq&pM37pzB#$41_S2vm^W1 z!VaK(nQShSX@xrT4TBKMcds7dVs}E9&UZiuR6Y@pC1+!4#5(g$=zM*8JYij`itMT{ zn#raUsSBfT?^eZ@1^$}L1HDKc}@k(s2J&8Gh`pPPoB51Q`^@$bb#B*Xuf zFM#<}-w~aFuy?-u+`0L8-h<)OZ@$4#opzsLt7DzOBxmK~8KXSfmGNVE&z>jGVyp|M z3)ZaxkXgXgKdLQpPyMUFw8lWMdLQqGKMM5p3~0nKU>GnA z7zPXjh5^ICe`4Sr+xgkf*C*`aNrCSayO?XN^FJx&8mm5t$U5I97P5LldtC&!gOb*|>CJ+?D)!{OKcAD%;pUEJS;p>|>9h8^u$wtd%{w+pgK2C5GK2C=VHtN~NVRUG~`VxOqk zuQImj@Jom}Dn@)3a%G3FA(jJh_?NgTvh3~J`8&<#iISbaK5_orsny?sUPXDX9`yJW zyT1cdjP!AB$@l6B;AZFwF4_#0WP1%QW5dOxpTi7|HA5f4uEr@?`vrsJ__JcQGI>YI z`;ih%cC&64ewl1cwh7tJ$TlZi^*`|_<$-uDo<{kdJpfBOLRWy0PyaTD@O>SCYH2xc zfb1;hP{;e)E^6x?V|>GaVZbn87%&VN1`Gp+0mFb{z%XDKFbo(5{$C6Pj|Il4;@}`1 z_Q}I=5yAN|4zJ%zvsIQ31P8^1ST-6DOLzou7U$8~DeAOR@#^yGjFdLAAcNkRg_GyqwF_B$iwBnhz4l$qA?aV2Pq)_q literal 0 HcmV?d00001 diff --git a/2027/problem.set b/2027/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2027/stdin b/2027/stdin new file mode 100644 index 0000000..bf4951c --- /dev/null +++ b/2027/stdin @@ -0,0 +1,3 @@ +2 +aeiou +my name is ignatius diff --git a/2027/stdout b/2027/stdout new file mode 100644 index 0000000..0a69063 --- /dev/null +++ b/2027/stdout @@ -0,0 +1,11 @@ +a:1 +e:1 +i:1 +o:1 +u:1 + +a:2 +e:1 +i:3 +o:0 +u:1 diff --git a/2028/main.c b/2028/main.c new file mode 100644 index 0000000..e1ef6bc --- /dev/null +++ b/2028/main.c @@ -0,0 +1,21 @@ +#include + +int main(void){ + int numbers; + while(scanf("%d",&numbers) == 1){ + int i, number[65535]; + long j, temp; + for(i = 0; i < numbers; i++) scanf("%d",&number[i]); + for(j = 1; j <= 2147483647L; j++){ + temp = j; + int if_ok = 1; + for(i = 0; i < numbers; i++) + if(j % number[i]) if_ok = 0; + if(if_ok){ + printf("%ld\n",j); + break; + } + } + } + return 0; +} diff --git a/2028/problem.build b/2028/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..2f65fbd5b82a8d05dda851d5cf92883efc3a007b GIT binary patch literal 8612 zcmeHMU1(fI6rN2JjoP}Y53-`dZE+>-L*m~wzGp;Rq@yhh8DaK82)Oa@)6rYPcmKbUR5I2nXW zRcrN3^_DA~?`;smRQH((ANvCaO};yf!^@`%`Os4R*q6?dM>c6JLdD}$>)RPeIfrrtW>$AstdE3xssZ%Rkr0D zH1+vq5eLUJU+}q6s+9h>d@++RW(pz>=Hq<*XM`bJ@72+C&U{t<%}j% z2<9=S_V34g`xq@p2y!!sR%6(dLk<+}JX-p>maOp{FmpY-Ply8Ad!XacpfHxo_irbO zVfAV*{2f7S=!MxyRv7;ElT6W7$%GcKc|t%Nu713l9H9X^?DF;sr}bDxZ? z%f>fI^(49*?mFDw=%sd~q0@9e>vp?x&Aoyy#0a@~ktXE*=!aj^(bRpi;a-M+&HdH{ z?o^Kqj4_2|Pq%bkpU6M2%cUD4dJ20+Oo*vqhz>8|y3V46rHeWwddfin=sCltd7cGg zPHzA;+)DtRhhXX~ezlk%DrR8kAQE*}Zeo_rfeShTa=f%DpI(o;+)Y2;mW!9TE^mFc z0VulhbNaffub<+2wDoWcO>&|ee-G_)0TUFsSOzQumI2FvWxz7KnIDsP{M((~wHQ*+bf@%Z(LG8AoN8uz9A1J{1R>;M1& literal 0 HcmV?d00001 diff --git a/2028/problem.set b/2028/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2028/stdin b/2028/stdin new file mode 100644 index 0000000..7b6705f --- /dev/null +++ b/2028/stdin @@ -0,0 +1,2 @@ +2 4 6 +3 2 5 7 diff --git a/2028/stdout b/2028/stdout new file mode 100644 index 0000000..93c6b67 --- /dev/null +++ b/2028/stdout @@ -0,0 +1,2 @@ +12 +70 diff --git a/2029/main.c b/2029/main.c new file mode 100644 index 0000000..d612778 --- /dev/null +++ b/2029/main.c @@ -0,0 +1,18 @@ +#include +#include + +int main(void){ + int numbers = 0; + scanf("%d",&numbers); + int i,j; + char string[65535], a_string[65535]; + for(i = 0; i < numbers; i++){ + scanf("%s",string); + int len = strlen(string); + for(j = 0; j < len; j++) a_string[len - (j+1)] = string[j]; + a_string[len] = '\0'; + if(!strcmp(string,a_string)) printf("yes\n"); + else printf("no\n"); + } + return 0; +} diff --git a/2029/problem.build b/2029/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..752f233f81020dbf8d90b133020a89f821a2332b GIT binary patch literal 8700 zcmeHMU1(fI6rODpU2E$mAR6(9ZE>abA&Ea=qy(}hi#Hf+v?&xp#{IcTmTop-e=rMD zQj!Z<*M%VTLG)E0MIQ=9sH|F=K8ThOq+k#qs_a4q5rrr=>-Wu_yWPFp`rL;(aQ2+< z%$YMY-|U6CcfSAUx7~Y%2<#PNd5;hx1QoqPI3i3>JOZ_#Qcgu*ioFqg{Z&RgCC~|P zi&*Cx5~ZAuoto}UQT_WmV?txhjnh%e3@HotQh}Z;{(7|oSPYt0^`wYIt3UVXs3_*Skjt+qj1uB@>8OncDT~>+)7g|vXJ-}^?%aD z+SY>oQ(NHetIu*@@t;%5UQ*63v~BAh>jjxiK|S{Og#7b=;)#^mjLetj6AKx+SjctN z3+nlK(<1iQ^Y)ZArOd?tuik*JcUVt=xV;|N+nPK4ThGOmovVDE=AuU(i+<(PMp zDfGu9)+G-h5{B-F4i)pcp-eh4lqzLXz?4U!oX0zVe!4mQ;|m{L{OQA+rL6(`NyPe~ z;=n$oPkWd#2>4xA^Y;zPaYmqQ+Fp&9D1zk=vDx4Yt{4h=FO&6=?&u` zWL1P!j_qtXHxT0jHXOFn`%Ki2BY(rWt^;M~8oY|aM^##=`Zp3$_>5cl_vUUB-5yrx zB2n4dLZ5m+BIU2j)op+c=Vx88qP(LHqoL|3OC?q4-S>LgxpIyzmGjJBxg0q1hn4(# zjZK_|3f2N;Y)Vam=`WHuh; z1gfK7xDAu4;afJq6YjECI3W3G{I!b#E4|xjB8Qb%cB~h#gdCoepQ%}AFOl&#zp1lp zGs3Z&k*n%=Q~hqK-yiTR#ANmHk71%Gnvrv`>vIe?e#MIBcwB94)8j$3u}SYadROR0 z>3s<=k`j@;DB1aaBD;WtvHK427#&Ev<=L0-ywAf@WBPrNKHo?7<4oKK)zWgjfM*N( zJ@AaSYudiA?MK>r`NkRs3GHFkl!k3>XFs1BL;^fMLKeaQ8CMe`w$&XV*U_ zd37C6o|ehE({i>L&!xm`Ik7&*OFMN*E)%#n#-;W;^K%2f9y9TD22Hsz;)}SjF3b=e z2FfSnSp|j(3c2L`BAZ5Bl(Dm_VnE{lc8{E&llGFGEEa6sp~pGg!TESPD + +int main(void){ + int numbers; + scanf("%d",&numbers); + int i; + for(i = 0; i < numbers; i++){ + int ch, string[65535]; + int if_read = 0, j = 0; + while(1){ + ch = getchar(); + if(ch > 32 && !if_read) if_read = 1, j = 0; + if(if_read){ + if(ch > 122) j++; + if(ch == '\n') break; + } + } + printf("%d\n",j/3); + } + return 0; +} diff --git a/2030/problem.build b/2030/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..5ec6c40f3d2e7a6d4a72ddd359cc39d78ad9563f GIT binary patch literal 8660 zcmeHNU1(fI6rODp8*1yOP$Z(lO>wm_+o9P>-Wu_+1$N}J}bO{D{&2rfXd83mbQCi}%3AJhjhav4dTV>J7<5(jq-YPAV9Eh8A2g+` z*6QhM&lRqh1RyLmq9crL5{7iW2eiYlC-b>tIah%%T(79>P3U;q#Jxvb=9j6~DuvRt z4hYx#TGx9}_tOqiUu|?qSucH1C}m}#G&QU2{{2|e^|w!rLbNOE8C%qeD;l+&|;ZT-i3LkuRN9`g+m|KL7LSt`ov+)R45D9g3VmU=^a zer8&iLqq!YzO;{K7oAm z>=_^BLtqEI2RvS{R>q5k^mulzn1xMx6wG-%oB4GASLa_^JpYYcZ=EdPegeK>u-Lm> z@iWGz4|EXgWgg$_AaNYNQ|#lM2cBQY;}F>#8{?mztJZQeW3P>29)&c5Ku>}>-jd_v z@wB#yk0pzMMZh9p5wHkY1S|soM+Dw>8^5^cZcXBF?6zM0HiFY&>%vC&Ue|37@}T54 zh1*EnS@CYc#|18ljpK+~@z%AY;a!K;RQ4+#Q=_fl5xC;r)DbJ*4XthLLTbZXgSl{t ztrJ}wMeM>Q6&v;T_Yx6^5+>0Ee0)qrGxfvhB7e&?Rm{S2q@ffn;x@e(7=pQe(Tm^R z@UFra^>}RW;PfauVA08UyIo{`2mK;X*L_rJ4*rAyLe@NX$9;J<>hb9N+_HP_G68=7hYhZ(-HmauZfse#->ddA+M}(< zzl4aN?#5b>?K~RM`4#ia^Vr(CN$n|W*QmWnZ53K9D`Hs(j74#P$H1hZXKZhac_)E?Ka~p zBcY6`RH2BjiUa?2u9nHC7+E<8vyA)e+7zuru&S9 + +unsigned long long c(int f_n, int l_n); + +int main(void){ + int numbers, if_first = 1; + while(scanf("%d",&numbers) != EOF){ + int i,j; + if(if_first) if_first = 0; + else printf("\n"); + for(i = 0; i < numbers; i++){ + for(j = 0; j <= i; j++){ + if(j) printf(" "); + printf("%lld",c(j,i)); + } + printf("\n"); + } + } + printf("\n"); + return 0; +} + +unsigned long long c(int f_n, int l_n){ + unsigned long long res = 1; + int i; + if(f_n * 2 > l_n) f_n = l_n - f_n; + if(!f_n) return 1; + for(i = 0; i < f_n; i++) res *= l_n - i; + for(i = 1; i <= f_n; i++) res /= i; + return res; +} diff --git a/2032/problem.build b/2032/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..e1f629b90aa47ef8fa4a77f383b0b90a8ef1e160 GIT binary patch literal 8504 zcmeHM-HRJl6hCoSUF+7#3QA=y9ZFa0NB5(M6c-^Yy*R~IYrBGo<+90U-9VBq`Ow|! z!eVwG#u%F?A4DX7K+%2i!3ROxVpd-Y;zJ(#P%xGRB18-rM2x?4XJ#{*Ro|6+;NEk8 z=WEXW%>*WMZ~XrApLY|5hKM%qAR+@}dzfg8Ost3=!mu!;JUjQicukypiLHYY8iap~ zxK0g$QqGH4=LbVnet6JEE=F&3r#m=8%3ORk$16vI^(y%QHZY_-IX6G& z^WgreTj1T-fad#(XKuH)liBKEz7NC1;OBfQpUq4q6Va)~ zwd5i&%Qy!2@nz-LtM9&dJXOB_z|82e%}@9_Rvhl%M}+aXhoM=HqIJ&W-=SalI=nyj z@g9ed*Fkrve{Ed<{8}~_Pfb2Ii9Qlh1VJ9b;OniL4u6linEBD78PE)91~dbj0nLDB z;QzqDE0+C}RcK9D#UH$#s_2BEtkSbTLR+PLcbgiYVp-_+jLk3LDy(Ai`MF`q6S+=7}r z-{sjwZBj(Fum{o|NGF@0k?*l0nLDBKr^5j&Gy|Fe&46Y=GoTsJ4EzTf7&{z3 z$8C>A_^?kMhRZ0mLFJWS5dhG5hgk0Q2_`94w+oB@qvsIAPw~vy72cZF^gGH@k-$`U_Uacewxn literal 0 HcmV?d00001 diff --git a/2032/problem.set b/2032/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2032/stdin b/2032/stdin new file mode 100644 index 0000000..3c2bb02 --- /dev/null +++ b/2032/stdin @@ -0,0 +1 @@ +3 4 5 6 diff --git a/2032/stdout b/2032/stdout new file mode 100644 index 0000000..71b294e --- /dev/null +++ b/2032/stdout @@ -0,0 +1,22 @@ +1 +1 1 +1 2 1 + +1 +1 1 +1 2 1 +1 3 3 1 + +1 +1 1 +1 2 1 +1 3 3 1 +1 4 6 4 1 + +1 +1 1 +1 2 1 +1 3 3 1 +1 4 6 4 1 +1 5 10 10 5 1 + diff --git a/2033/main.c b/2033/main.c new file mode 100644 index 0000000..974174b --- /dev/null +++ b/2033/main.c @@ -0,0 +1,21 @@ +#include + +int main(void){ + int numbers; + scanf("%d",&numbers); + int i; + for(i = 0; i < numbers; i++){ + int ah, am, as, bh, bm, bs; + scanf("%d %d %d %d %d %d",&ah,&am,&as,&bh,&bm,&bs); + int cm, ch, cs; + cs = as + bs; + cm = cs / 60; + cs %= 60; + cm += am + bm; + ch = cm / 60; + cm %= 60; + ch += ah + bh; + printf("%d %d %d\n",ch,cm,cs); + } + return 0; +} diff --git a/2033/problem.build b/2033/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..1b37d804b933f2e05969816d3023ca2401d85a55 GIT binary patch literal 8480 zcmeHM-)mGy6h7<58myYli&$*&DsF!%#+E*aZDCh-$Q2V!H5W?hGGw!>yRcc8{XvsA zX=vfHUa*hS|DaUKvrmG83WctahkeLH3Ta773V8@9V!M84?%d728}+%u9PZ4SZ_b%B zGvCaGJ9mD6_RoL2h+=V~YdeT&2x(z}=m)Y;B6WyZu z-mB`5_bmwFczd)*fP)5uI^J8l!jC75g>tn}LtTHoqKK@eXM_lazqV0}aDiapnhEoG%F>vJ=?t7Tbj)Lt1c2*dk>+Xuq@hsP;pdFplX5@^rk3*s>j z$K!n$-ZxwC!PwdJ=S1dgu!pU_c>=RoYVt%JM;BH75xi$7l>^Zr^q@s_Kw13E0>(or zWbDUtV*4yGzX!|EDd@M6CXm9yzMR7I2-~^*&>{-4)P)9%kB6*3=8*j3W;qz z=7CRFKzD4bZ}fj@uHGojoH%m=<0$3e1bH8c`>R?$e;;Yg{1`C|7zPXjh5^HXVZbn8 z82JA&;Mne;_Wb&U?R~j7hNGp|eEL8<=W#C3>SL$}Vv~_8ert)%&&AUr?-n53|4^#A zVSCQH?TxRFd17VE8(+3Pv1GdgN74Q#-}4bv`py@~Gp+1uCZ1i&xY;(!ZC5AIKlAtXXV9Fo`V7crJ`3zY%YBOhVijJ?03_ + +int main(void){ + int a, b, c = 1000, t = 1; + a = a % c; + while(scanf("%d %d",&a,&b) == 2 && a+b){ + t = 1; + while(b != 0){ + if(b & 1) t = t * a % c; + b >>= 1; + a = a * a % c; + } + printf("%d\n",t); + } + return 0; +} diff --git a/2034/2035/problem.build b/2034/2035/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..85440bbd1709cd804ba3852982de6f2314bc2727 GIT binary patch literal 8480 zcmeHMU1(HC6h1em8q~U*7x5QvrCYQGqtXX`5O*aPSE|;Z1WTa|+3ac-HtTkOFp)|F zYanY3_+p{rgHNSzTIfqDg@y{zC&4ERLi1otmTVzPz@;v%(y9?wN1S znKNg;nG17w9{%(9ziULSRU#8zA`(Km+buFFHfkc9QQ{~{os1oEK6g%k%GP$V+Tm*v z<2;6=QUlIs1MMzu|8RSoXpG$C9bM?5R53MHWX+S#coQ2i8JL!|ofy+;Nw-Y20OJ*k zr9`3G)EO@aLKtto_VBUap-0DCtsA^}Y9y7(rSfR&jQ5p}_rCTgChtvIk>7Bkm``WV zYlqHww{^T;Z6^*&TWlDVDrGOGvq_cCp1a`U_VxHt$K#q)h&y9=7VpV*T|iN)KQ<5x zSg?L=>*}v>U|q52nz5D2W>jH(G;txLa>e|A#`D8)f3UwV+u~$OkAKFK2uF?b4Y17%>bO1`Gp+0mFb{z%XDK zc=H(;j931QmuvQ%^ODKVIZF#TzRo!{3uxM@fBWL{Qf06npE>v(4e^;0s)NgSW#K2l zy$@nj_sjLJ{wZfMG|4X?^jPIAm+KO`F*|j9@v5`cUQ8jQ1btKuwUuvT-u`b(qHK%QsWp;SYP zJf~Ki`RXAU_Wl|#-?P8?tr5A2)<)zOp2udkPeR4cG$JMF>mztb^)GmjaMbD()FMec zk`(v377B-K?|Wh!E0Cb(IhyC}kD*zk`Ax7M=j$+vmS)9opuVQR|Gv>WXft)g zfMLKeU>GnA7zPXjh5^HXVZbn87%&VN2Hs8vdUu3RGxOdkFZk8M z!@W_J!v%El9MLAA!thX*z!OX1Ub0J#j;PdFYPeKP;qH5g-QOD>N@peFT}V!B*Y19W z%^}OZIduP#*yv*K{|o*x!T&X&oBvVpo-v3&>cHMG%{$wuk8Ru}ugp!kx%u + +int main(void){ + int n, m, a[110] = {0}, b[110] = {0},c[110] = {0}; + while(scanf("%d %d",&n,&m) != EOF){ + if(!m && !n) continue; + int i; + for(i = 0; i < n; i++) scanf("%d",&a[i]); + for(i = 0; i < m; i++) scanf("%d",&b[i]); + int j,count = 0; + for(i = 0; i < n; i++){ + int if_in = 0; + for(j = 0; j < m; j++) + if(a[i] == b[j]){ + if_in = 1; + break; + } + if(!if_in) c[count++] = a[i]; + } + int if_change = 1, temp; + while(if_change && count > 1){ + if_change = 0; + for(i = 0; i < count - 1; i++){ + if(c[i] > c[i+1]){ + temp = c[i]; + c[i] = c[i+1]; + c[i+1] = temp; + if_change = 1; + } + } + } + if(count) + for(i = 0; i < count; i++){ + printf("%d ",c[i]); + } + else printf("NULL"); + printf("\n"); + } + return 0; +} diff --git a/2034/problem.build b/2034/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..c5e57ec96d2593c317c52a0eae85f8b9b348c796 GIT binary patch literal 8900 zcmeHNU1%It6u#RZjX!l-5s9drJ~R-a(M=6a5L8g8KKS5Il`L5LT8ec2zB_l4-AVLWa1Ob1 z&pG$p@1FbJJI&49etY}Iox6nyEf->VnGixl5i5nTM3|a*1jRrx&AnYayI<{o=|y_$ zB~))NX%Xi~1e#`V_rc!!5ZQlqy-z3`xiKAC7-5?E_^~`SSNwRZ@55x!^xO)!owib4 z#|km*D(=%XbNNDFZrjfdiYg7@Q?R98Scy}p>i)SX{sl)Lse15!?!s}4+w8{It zEXpsM%V(3B0TtlKJE!m-Qth;Br4Abnrdh}wO=e$A6Y^iX&Ze13nYp2K z-(bo-oX;-8Yf$;AZ6;{@@wo3iG0jxu-|!k0URZUYU5m&0vUsxaUiIwS^FsHIUEVtp z_VEUrGOZSY7?M}%6=EIU+ZO6!A;?VwYH35KbcEgacNjJOgyCMEfQ=Nz^|eC$j2f?r z*o#7uIH(zWFN(Lfp)QgM^k-kcJOD=+<$e^skjv_+WS<@zO2uGP9z|guzuhbssyDWr zIXnH$x{ca4R**eA$ohb**q5zEf;t-YeR!V>^Tv#>V*jhjRIN zy7}2=S>$xk2w0|5g80|5j79|jH>_V31tKhNTKe{1=(iI5QX zSB5iQzFn;v&gAf4)oPDpb>2Z$T2;nxnBAp&dhFe|W~|GIAWeonISRGMo-yq45oq>R z!yX%^VjahG?mCVIMrn*ehW$fnoKDz`n45Lm*lkhU1-3ccZ^~+Xf+5b>B~%y1+-W$A zx2oF7SEx+VD>Umtq*I(^Bn%#ADwnI(>Wp=f9!N=Q+bl+CPA5FTACvfUibm97s4?}+ zG9xr=*jF)98=7tF7~F2}VmV|>n98S1Vl$O_?5!>~SzHSH8h&xxR{kHc&!dHT|I-Y< zkZtGYqb?||WKr8@xw$;gc}8W%T zGcHcb@idDEhkDr37!$Uy6|aWuajHi2ihauBR#I?ecY#1%5_lFq4%=EDnJP}w5+hCy zm3ETnl;R|jLfV<~h(+%^@_9a_7I+pRetJp{yA&&-t+Sf*kqnTq&=wMAR;4kS(3KDp z-R35$y?by`nC+Zqu-qHPDFjb}NA_1}YK|p0tOipx%vc;=QVVRg3m0hE2^uPQ@P@fl z723&{5#^uMHj9(eoOY(?Z2y&&TGUH28SK?zIBhG%WaV-%j4{D6_$L#(eu4_Y`(3rmH|2~oBp?813YxoxCJB`*3fJOYKp{XB&Mz`Xk8{nzCW|)A4jJo~N||)?r*<=lf~3z{*7< z85*91Ox*1+Gt&t(ek>j>4yn0pG)3Ut_aOo$qc%r{ek79B z`v+54>73r)u5WJ59!jJ$u`R7fp3V+z8i>Zs_BYy(W?LWw8NF9$zo*(d`r6v!&4a>C I-kq=b8|rw5=Kufz literal 0 HcmV?d00001 diff --git a/2034/problem.build.dSYM/Contents/Info.plist b/2034/problem.build.dSYM/Contents/Info.plist new file mode 100644 index 0000000..09786f1 --- /dev/null +++ b/2034/problem.build.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.problem.build + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/2034/problem.build.dSYM/Contents/Resources/DWARF/problem.build b/2034/problem.build.dSYM/Contents/Resources/DWARF/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..ec56ad45243d723f6148d83b300c01a47a8739ae GIT binary patch literal 9569 zcmeHNUu+ab7@xhlnQnXS_1c3{{>1}Z3r4P`VEAJ}FSbe*fk15wg2UZ)_j=|2rMC+$ zA%U2fXnau~4WT@cKq3!5_&|KZ#6%5=nwT`=Lto&PnD~Y!;`hzY9@}jX`hagc$?VMc zeKWuL_V;~zx!svx{(ksx10fnEgfu~gKKTSMs;q~$6YBjx@7RwY?wY&y{m+}XwqE`& zr1T_42=)`uZh&?z)B{k3IFfpM=)};`!yx#I=98Bb5$AUpD8$In_{icBaz3oLTtU~F zs%RI&GG;97ImM3`i@?o;>CLb^f)Gy^g-cH?h*!1jOtq%+k4mG4PbF+5jL2FuuJFir3sNQ znPn+2j>m0J zgpsjxqL42csHlgx;4Yq!)9PMayo#MErHe+@kGHVh@ehBGuqV?qb!Nds#B+N{Zo(C61*b{FQNE5vO>IcCNpiET^f(d z4#&T|@~84*9mkZ~^$&hbq{bhQdkXKe8h`JZc8bj_EfmN)zDU^z{bv)GF&U*A)`c0;D{V?0eEfyMJ4Lrvhq1$3I zxW-HnPOvDyid|~b8I!%Vz}C&Pj=vav0LJ4U<2f+W#`#6&xhHm5C&!xRSSz5lnJjEd zMU2n07K`Z?YX&o)WARb8W{idT12CTge=N4aWF7OYRc~kO1{mcw>!35^(0Kq>+BnW> z;VO7SSHHvJIQm<92Ard-P1eMJlB>l{w$@~A11y{bImh%l)&|SAo2+$!wG80mEufBo z4$U!cq88kYSfH@M5#Rv`k%MEP2w!6_pbzLJ+2i;Pliu0Magt)002KY}yUP)6*8e!D)~F5hI))|2)JXmTMrC_=SfM+(&#F+S-R3 z+^>6LVqngfEYb;WHGkf~Z7`fhUa1XpcGBG}@Sc~D1Jz{%0EA^mP95&ct8=?z3{)4HQ^Mx(Jc>!WR2JDfuZB|+KF-{_>#y^+@<0BXShrb`cugABn)7aZN*0!zMBu-vzRcrbuKzbO}k}erw|3!O`~;XN~Du!p^EPhWqsFS%n+vVW`lr1!pGg^|6J_G~@_M@V`H%UQc1Kf9_)_?ikE!tnLvUOh*k4d{8(T#NYq}mxn(H!8v`G rK8a*LyMJsD#(V%31Bd=# + +int main(void){ + int numbers, i, count; + scanf("%d",&numbers); + long a, b; + for(count = 0; count < numbers; count++){ + scanf("%ld %ld",&a,&b); + long sum = 0; + int if_yes = 0; + for(i = 1; i < a; i++) + if(!(a % i)) sum += i; + if(sum == b) if_yes = 1; + for(i = 1, sum = 0; i < b; i++) + if(!(b % i)) sum += i; + if(sum == a && if_yes) printf("YES\n"); + else printf("NO\n"); + } + return 0; +} diff --git a/2040/problem.build b/2040/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..e220b57509e18bfca2b648390e43ef171283af61 GIT binary patch literal 8480 zcmeHM-HTI46hCpdcG+&dSt!NQTCQS5ExOxMN{cLHi_>25+g+gwWyqJ^(3`mAquqTd zEX0L|B_Mt12Z;D5?7Mvs6yignf`WPQAz&*B*s>1+trX+$%$>>JWLt&473PpLXU>^3 z=bZV?T*$ri>ytm8zDyJuB3jx+L=Jd$m}r??^oZU7dtfO~On)lQic`ng+E0;w^&d5k z(}1Itv*NSaeit=A+HWJRqc(a;GkZu`$}E()7tn@yTd)`m`KBo7Sk5{P)6%-a@rtE# zve+{X#`6IPhZ@r!MmG~ibiB>l5X6&n8Gk-gfNe0|f{wRS`?Jot_h>_XsbZ;+&3~aC z2IF1Q@m|y8tcR&DHU^|D=fBS8(=wYscV6lJ`?0Fy@t!lWJ{Thy30mIQ7Ff!I)3ei| z5$vDZ0<*6JlJ^y7t`}R%yf2H3x#W3Y&X)@R8qb8`^TG2CG5+B?rSuceixs9OH1R>%)AA)&| zYaV{@H^3cP&yD;ui^WnVxBuh)s3V(%6KEHh^Ub>fetWde_*k+CSOhEr76FTZMZh9p z5qL2Ir@iX$Ugcrjt4-A+c-5+fWcc4EiZMnBbfzFV3N%_5-YQj{hmQ@1Yk! zW^!%JIsG2UeSRMp!_26f4W<8;L>Wx;t$zRePD^9A(js6Hun1TLECLn*i-1MIB481) z2v`Ix0v3V)F9PE`qNlj}@i<@hsmpMg#QiWXuTK`}A{CK0`a1)9kfwKM8#lU(o8*nPNmZL!mtN5Z066h8KXW~0 literal 0 HcmV?d00001 diff --git a/2040/problem.set b/2040/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2040/stdin b/2040/stdin new file mode 100644 index 0000000..5d2089f --- /dev/null +++ b/2040/stdin @@ -0,0 +1,3 @@ +2 +220 284 +100 200 diff --git a/2040/stdout b/2040/stdout new file mode 100644 index 0000000..823d3f6 --- /dev/null +++ b/2040/stdout @@ -0,0 +1,2 @@ +YES +NO diff --git a/2042/main.c b/2042/main.c new file mode 100644 index 0000000..a387d2c --- /dev/null +++ b/2042/main.c @@ -0,0 +1,15 @@ +#include + +int main(void){ + int numbers; + scanf("%d",&numbers); + int count, i, station, all; + for(count = 0; count < numbers; count++){ + scanf("%d",&station); + all = 3; + for(i = 0; i < station; i++) + all = (all - 1) * 2; + printf("%d\n",all); + } + return 0; +} diff --git a/2042/problem.build b/2042/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..802c0f70c2ddfeadf4b27f4cf72fa0d4980a27ac GIT binary patch literal 8480 zcmeHMOK4L;6ur@^MXO0&6u%I~h#$1AxbTCJN*_iPt+hfCWN4abgJ~@JV5=J;2!N7DXX$iY`UEsGyQSg)X|NBF1yxo7cRg>Ry~n?%X+Z@7$R=GY{U&y#4<5 z=PD83a*x)POZO&=_L( z4>Y!k#+aL|(8>sJ}nobQg#w?oGhllMhgGQZ(WHl0Xa(E-i*p6Gn!i9+m^ zhTL!{l}lYuq+%+Ox_r&Xjr;LT=i{DJh?{db9;f8KR-j7t_6+oRJlMa6eRcQOv#&UF zi@B9bB~@l(G9GpIR z=9JZY(mlh$rgZ{Sg7)G?m`7Lb_U(Aiy6gavR@l~{$OhZv6hUD8B#eS_Toe7{zgo1ln$R=qwvCib{I=bgDsx-*%GcE%=>F&(rSmh%|?cK74@ zj>G#(NAg#bQ_s73jzOKs+SRu1aWUHweibokq?G5IlK7%&VN1`Gp+0mFb{z%cOtF>oPL_#Da4c14QE zrm*@*F}F~*evpT!Qn?3Hw&sZn)~88p{;0L!FJ1*i_(R*|W)a7at+G|&dvw{FLy7R2 zNo($?HR~^K0-Ure`HJu5jIUr-(4K#R%3SqBtyV*#K?dY1$it6@f;EkS?1=el0TJCV zBKg-{mtNIECAe#$`zS?D7q?Ep^qjAS60oHaHdenNeuQt%)oIj1F$u-+n(afw7WyGx z%lBx$XCH*6-o&>Xg>|l_4Lt*PZ?@JeHqyld{r&eyTd&X54FiS&!+>GHFkl!k3>XFs z1BL;^fMLKeU>Nu}8ED@g=;zGa!@TUXFT+(7_rtinK9`n~qyz0?HHHi5>}8@2K$+p8 z6oDf?g?q_mYIH=!$K%7fY#evrL+rk7bSROMkaHpVZmSM=D{S`rc$4S+5z%2|=l=`$ o{|#7HZQ(tm7w>Jt&M=F2wqX|sag)4sZpxmUyDq(=B?NHbU!0@=4gdfE literal 0 HcmV?d00001 diff --git a/2042/problem.set b/2042/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2042/stdin b/2042/stdin new file mode 100644 index 0000000..5357a4a --- /dev/null +++ b/2042/stdin @@ -0,0 +1,3 @@ +2 +1 +2 diff --git a/2042/stdout b/2042/stdout new file mode 100644 index 0000000..cfbeb15 --- /dev/null +++ b/2042/stdout @@ -0,0 +1,2 @@ +4 +6 diff --git a/2043/main.c b/2043/main.c new file mode 100644 index 0000000..bc23ea3 --- /dev/null +++ b/2043/main.c @@ -0,0 +1,37 @@ +#include +#include + +int main(void){ + int numbers; + scanf("%d",&numbers); + int count, i; + char ch, string[50]; + for(count = 0; count < numbers; count++){ + scanf("%s",string); + int len = strlen(string); + int if_one = 0, if_a = 0, if_b = 0, if_c = 0, if_d = 0, temp = if_one, if_ok = 1; + if(len >=8 && len <= 16){ + i = 0; + while(string[i] != '\0'){ + temp = if_one; + if(string[i] >= 'A' && string[i] <= 'Z') if_one++, if_a = 1; + else if(string[i] >= 'a' && string[i] <= 'z') if_one++, if_b = 1; + else if(string[i] >= '0' && string[i] <= '9') if_one++, if_c = 1; + if(string[i] == '~' || string[i] == '@' || string[i] == '#' || string[i] == '!') + if_one++, if_d = 1; + if(string[i] == '$' || string[i] == '%' || string[i] == '^') + if_one++, if_d = 1; + if(if_one == temp){ + printf("NO\n"); + if_ok = 0; + break; + } + i++; + } + if(if_ok && if_a + if_b + if_c + if_d >= 3)printf("YES\n"); + else printf("NO\n"); + } + else printf("NO\n"); + } + return 0; +} diff --git a/2043/problem.build b/2043/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..89d01a2aa6e4ba1ada4a0d7f4ec7ad58b5a828c4 GIT binary patch literal 8668 zcmeHNU1(fI6rOET4gK+^VkJ@wo7&YX(!?mzPzs53aEnPBO$u$H9XFe8vUIbF`$Ln` zmXytEmrclm5rPEF!=io6L%=+gx@sYPsvrnH6!AeN3;L!I1-pLV+2w7Mza zR=3oc=X*FRH6YInxLtI7v)d*t9b@BgbfJe*nb<^zl1bit@9x56(DXYe1ESt&ie}v? zrktu$=}dMoy=n618vr28*J63tx*gDD<$KIBnEBL5EHNHS!RF1Eu<{+T{Ha?*H7#}H zi>5QFcyf3%zZ<`@l@Cl4btk!Uqd}=`@^U;mq~ghoV_J9TTe0$S%}La~Im{Nb=DHry z>w3Ix+#@RsPyFM;8;S9XHw9&&bPTuATZu0;_qB%rH02G z+oUdEvo*dZD*<(HK6_2+qEsUCZ{usR@&&DY)SdY_UlyAleOEmvPQE3NpRm7)pa(bT zqz4*IGlwN=`vH8n?UaH-a4t>Y_TGXjx}b9{Z-Ud0YstM_flmKKs}SShJ5l;joJ3z1 zCl1bb%3X+Ote2jEA&7#{PqbyzskTIXux)5EF$A5o4~65H{NnTR53YCYE#JR=_WaAA zT{s9^Gm6-~LzkCqoi@-R%$ITeuAM}c^JW{z+}QCGwnN}i-{`-8GM$Ny9)9C6#t|Qc z6XTB6WdR z>H-&aV5d8<-IzJxwsabEJi9o0T+o5Ai7G3{Jgytlue&W>#xze`4xi_Y=_lQmRwM7} zVV*rWVh+}23Dsq}uyq!U`=~4#`Tfi|du$&vV{Pw3!wR9s9+;}~AX${l8q(!z^kJ=* zyEcPGIjrqV4RWzTE;Pvb+(v^jqfgbd$G$@wGF@Sc{MA~mR(%R0x>z+EBD!J1(eR1c zz>{(zpJ4+e^t+<_U8%nJcddp^`vZ*Jw8h?yaOXWE&y(*fmGF(b+~4QFUdL7x#?D&k z4tOn8(e+ol=B#>V_kRS|-Cqmk!Am2kMD-W+Ho{|T^#LUwNUPscdX>^WNTDGSN{f@H zc8IgGAID;@z_TbMCui?G7rzG1a@zVWNSVJyb|JD^M?Z$sE96ex*Qizo78B%Tnk2Voz_!*%8&wL{R- z(MVD&?NlA_bqS;IgZ|D(r*E$-BCq;;t8x7(|UX+k*LEpFp zct>SkXgm#W;DUtrAoe{8I7LmoHgf9S9{q$z@AK$qJUaVtMB)D^@SW6pM#JUwi-=u#4+ + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.problem.build + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/2043/problem.build.dSYM/Contents/Resources/DWARF/problem.build b/2043/problem.build.dSYM/Contents/Resources/DWARF/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..889b3eed09bec0b8e9ec49cecbf90ad6af5a5669 GIT binary patch literal 9620 zcmeHNPmB{)7=P30H?7;xu{nE0H|g?zCHMr%gL$ zSwV*=2aLv)2njJjOeB%R8a-&>ZUP}5JZi$hgJ%!M1BoW;_szVi)7dWUL2mOkZ{GX9 z_ug;5_xrwSI(_fQKY#l>#F!*A#@eu8o1LSJkX2Z(#G)IU%P;)Ct^48!SAMwi%fKH2 zVP~C;Q9Fk9YOMRP?8UAlii$@hkKRfpoS$(Z=ZD6o4mFRk=HvZZ3AqlU zP(SB}cG94hEnd8GJ1!o(?$RQJ1f2%eL3YNia$YrR>1xB|#hYAa;}K_$xYrvNc#7z> z@%W5ZC~Fn8dGV$N-gXBJYnQ7n{L560N?y-3@SFL&Eby>uDNWcog7ca_o7bm#UeA^+ zy%}#_;8DyS@nSf3swuA9t+7MC2`sAIc$CMk$I$g$O^)w- zd2Dptc_v~W-o%1c0z@GUcm5IoH}OWu*OBCb7iows2@g)pHeaBJ359UTzX&NPoKI`% zT8w(Cy6}v-@tJVqtubZME_8 z0_NDdrQzY1i8at0k6QxoI{|a+fq1EMxu9_?xH!j)cWT7;&&k_U>mTHw3$L8Yc=2us zJO}26(^v$Sa~sb}mKOfq6?hlL{JTrUE2WQTXo}ar^3(Qu9hmY40qj>k13m*j13m*j z13m*j0}q)2dRJQ}*)I+BQ}aJU_+ois&-FwR|pral!`XW@xDgjE>H!mc{R z4d_tbfL`o;Oojd|Y_3Cx3eRR?PaU@2r&BH(2rGAAZ3f<=LLv)0>X1}nGzqy?%9nzAt>qaQS6q2G!fVNq@5P~w*YFkyd)=I)zKFoNX1+^myHGzj&$`vi=7(^ zxB9VprJ>?6lP^$#Abg3HA}Qo&h=?9$;dwNLF=Wf74bd);qn*90qRXWfct9W!N8<`* z_ewdsBeF9x&^O-oJnqTMBP<|H<6XGIh&2k~*E2c#TqJ_q?usN)SE!$jcWpyGOkI)4 zbJmW0k~UXklaq&EiJj0Y)qF{h4JG3EiEYdjaL0PfP$H3tqiJL$KK!KfWDmYx#leF! zwYhv6kBkhCmNK=XrW@74RHisMoEX_^XP90qrg0$4lxmn&dCVy$4w)1*o#nHvIrd+ks2y04u z68Buvy>tITamL8lPsKTsLwPLW0T3Av3IQHyQ1C8 x`W_YvD)~k+#% + +int main(void){ + int numbers; + scanf("%d",&numbers); + int count,a,b; + for(count = 0;count < numbers; count++){ + scanf("%d %d",&a,&b); + unsigned long long step[50] = {1,2}; + b = b - a; + if(b > 2){ + for(a = 2; a < b; a++){ + step[a] = step[a-1] +step[a-2]; + } + } + if(b > 0) + printf("%lld\n",step[b-1]); + else printf("1\n"); + } + return 0; +} diff --git a/2044/problem.build b/2044/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..84ac4c42f531ef55fbbcaf87506620ebb7ca26cf GIT binary patch literal 8668 zcmeHNU1(fI6rSCr8q%NLibzC-ZE>YmOd2UzsXx1t;0=wMHd_e(P4_R^wRbmRf3N{9 zDdCFCcFVrxMSKza;G2E0QXdMT783-q6r_TE@Ihr4^i_%vUB7Sc-1hE``Y1lkftho@ zGiT1sd~+A(-r4W|{QdU5LWBl{SP2UuA}C^;5RQn^5)YzSC{oTOUz&Vv^4P2N_DiTA z{w-pj9}p;IYH}{sAENq4`+Y)V%#G7gg%MKL@~3LFTnXlD@5ExzbVW~!c+d-`9uzBn zC}p))&s6WYg87bt5T+W@5gztB4C#FLXos6m7V`E|z5-t`pRMy9((%OP{f=yzU$$DS z6w3=bAeisG&Uc?~C-zHUZZt?)FTYbP=VY-wzo>Bkeq7S|xaSn&U=Fv%t+}sP5^T+KY(T&_ma=@IxyF6?-61NdOOMtieDJZ;^)EN zPCJ4A>>HF_aKun{pp4b4l`*@R8Otr(Ibg~|D4fTS;`Hn9y?yZcPj3ug|M>K-^N+$8 zMG-rPRoU-h`XKwTUiRbf+Akc3>t-A0JowblcpO4^$Hw@x%hg)GH2UHw=26Tb2=W*T z$Ga4B`FLDo@?*p>U>GnA7zPXjh5^ICf5E_UtMQ9<=C^Ah9NSvYg>jUzS{LVT_j*=y z+X!$f5ngy6VUNs%|e!^j@hO$>L(-V%Iv(dbv8r(pJ z99AKb))Cc}p4Cps%5GZCv)?j%Q^l`#!dCX0HE{NO`mF4lnrOp?I%GZ6P_f-ldc9s3 z>4ZD5h@5*80G!=WV{kIw7@w;#u+$Qo8cqUD-TU3(3s7j_;k)5H%LZ6j9m!nfSTwqy zp#uLup^5xAU%q8Mvl(%C?j2vZ&Rpegz4=v#>y2#h#n+*G@hhsns_L&%3o+e#WDP1g z+lxEU?E;t9O@&p(%dNIq+=E z&MdR~eULWaM|PlRRP_eXuNukGnA7zPXj zh5^HXVZbn882BGEuzT-FiqqSjki5E1XHUv(;iO!srz<&ev=VJ6cxk6D$z=xj#<EN4$l2BVzMgl$O(?wgrAA`S?FIDq3qJ2P1xW=x{6CD7mX47Q?PeKxR{9#!t$o#2% zwqDEQ4n57`_LS1avWWA;#(-$^-jL!M>YGbQ-59E`8V{f?g3mGD{{Z-H1dyMvl#HVG z<75C&1@O@To(o`(kBdh2{{-HX>O0;9zqJJ0Vz@=#x<0Aa*T=r%u+QV}hexPKr6zI9 I4q +int main(){ + int m; + double ans[51]; + ans[1] = 3; + ans[2] = 6; + ans[3] = 6; + for(int i=4;i<51;i++){ + ans[i] = ans[i-1] + 2*ans[i-2]; + } + while(scanf("%d", &m)!=EOF){ + printf("%.0lf\n", ans[m]); + } +} diff --git a/2045-i/problem.build b/2045-i/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..ff291489c3615c36cd83f6616c2b3c08029cbc0f GIT binary patch literal 8620 zcmeHNPiSLB7@ybOYS-PG)PqD+$SxbHg6X0?tOp@k8hmBT8f_QqqKx_5giX_uKbYRS zv;jj5^y)$MB8aTei=c;v1(n^4sEeQn4}yP4Kt1$S6gK{T^X6^dd$FGPFdxkO=J(Av z-+c3XlQM6n-~9dO-3NuRjtQ|nA%qB_q$h=FizsSBJceSUNSRK)l)937^<`T9V)@~J zBF34;08*}`R#*Hks(;vT6B;8ofpo+Jx>?Fbq171qj>UTzlR)DNp+-%g2jOT{o zdUN}7RK8CymU3-l^cKeR3!^{tn__1Ov9~|taUHuNWhL`}`9*X*_q`H(<8i+3nq$n- z?{sPL(#6!mqWc?*26zLeTvucY!8p3A>}T+I;2djFXD(CF=ZUo>q7H6B(~s|xIqm~9 z*1~BaO3)`!(kNb`FN>E4Z#(Nz^gj_a0^?`Ql*B2Nxn{jKS1D)b@>`WWFy(O+=JCtN z&%R$gJO5dG{s-}4^3u;|VFPtSOk+i(JmX^8AhVdS;+O+?gyV4DY-7&HpZgVmMy%1; z7=L-I-YBfcFT{~YISVJqQz#toqo~8*(;AZ>BZdLPfMLKeU>GnA7zXYK1}@v3-|TCD z+_Z!^2!$t`j-IBryOVz@CG1Y>@K*cvyTc(motE0jU-W?8y z17>6QUi?w1Pgmi;FZwN@ox@>hms>Bi-k{30*@|Izzv8g_R{tW*opu^v@Ht|2)%5J{ z^gnd(p0K-@5A7Ge>$I2P5o+@*sH^JswJ%B58(;Lf9S@z{8^*pxWf;4op5NoS)O+$1 zsO0i6_8#;e_rqfFJ4PvSJ307?HEt9KcTi)aE0Kg#o6=e&VtEmZpQ{x4J%(Y$6OMyV zbAQSW@;np^zfmcyGs#ov8CJb%9aR)M;*rGnA7zPXj zh5^HXVZbn87%&Xn#|+Gzi7Yd{nS|t3cqVsM=1N!PS~FA2i&tvly#z1W)Frvh;+_|m z+S`4cS}3vhL@g5NSbXpnz!6L09&kdgmt>(;$Tb@U+?i(> z{`7jLToo}MY8(^W?sp*du!8$ET9@uW7IF~%_- + +int main(void){ + int numbers,i; + unsigned long long n[50] = {3}; + unsigned long long count = 2, cut = 0; + for(i = 1; i < 50; i++){ + cut = count - cut; + count *= 2; + n[i-1] = cut*3; + } + while(scanf("%d",&numbers) == 1){ + if(numbers == 1){ + printf("3\n"); + continue; + } + printf("%llu\n",n[numbers-2]); + } + return 0; +} diff --git a/2045/problem.build b/2045/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..05e8939ec762a96423be80f524b319c77a445c23 GIT binary patch literal 8668 zcmeHNO=w(I6uvJ>ZAe>Zx{-(q)8a_AkhE1Hg$8G&!53P!H6sm0xz1lQL*7in{9v;v zq)rDMhSAYg7p`2n5OkpsB$a4|WFysrpwNY&mKmtfl>`?Vzwf^Lnl~@%TI3#b-Z|g7 z=bn4-ci)3I@8;&8zi;mq!WtA}Wk3iKf{Hyt)J24zco=F!r92mZVd~=4D=#zJFIGSN zTf{m)B2mi3)NGgd`8B$iVmn!sJ3D&!J0Ev|99fLl-Ivd&Vrgjld%Mc13q`NZV?zU-P`x?Cyc zi}N}mSnp$9Z@+FQ_Df%FG)P%3zL_s(WWG4JsBr&&tm=B)a|&^=hTGy^xvvu-NXpak zMBLYc{Zm`u?Q6htUvbYVWiKgzwV2m51i~|2Dr-T`!{R5&P?Ly;M(jo~yIdFP)h>J?%XckpOSNl-r6- zw}y6A{4k!|WAq~KT83f0dyC;1F!%CpSmtprc`vU6bM4L{A(mkGLC-<`!d$AK2Y);L z82YnsP##1e0_A-JZig7vZ=pKHHx9Il&fob%9$UvWEFJ7Z(~ndNdNTNrzO4D-mRkOX-G%JEhs zE+0>7On!_Q1`Gp+0mFb{z%XDK_&+f4s@?d_zH;|FONirtthQkqU)!zL8{55}-JIM8 zwwuq{jmujb_16&NlI_OL&a-UTs56akwQy~?e9?j%(}^4P1UzJl+I4y-LahtTXsTrU zs7kaOuF=7-ezp){F?&HZ3^rTrTkBeO`g^-^^#_jGRF!M%Rzo@64|=^`7o~;Wn!KaT z=d(!rRCKNZ)wZlqeTL3;Mgi2@c5CuW#E?^jY1B`lsk??ksPPdZ%{r57odG+&X*WOn zmg6Ehu97F1{4SH5dwxR1ZsPC7E&JqVsLt2lzfjjT zb>#$vINN%x1rwj?MK8m)a}0Lxpn8t4uie}9_+r|dokmqmb`%RsRlrN84-KeyFW4)wqTM!+>GHFkl!k z3>XFs1BL;^fMLKeU>GnA{KpwMcz86yDISbT9$hEX3o@Nskn`1KDI?C8!tEFj?bIQ; zOyS%ZhuSM0e2Y+GwMA((&~q-CcLd@Q#0%L%Ia?t*0 + +int main(void){ + int count, i; + unsigned long long n[50] = {1,2}; + for(i = 2; i < 50; i++){ + n[i] = n[i-2] + n[i-1]; + } + while(scanf("%d",&count) == 1){ + printf("%lld\n",n[count-1]); + } + return 0; +} diff --git a/2046/problem.build b/2046/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..c44e7ad739ae7b9fa6f74f299c994ba54c0c00c6 GIT binary patch literal 8668 zcmeHNPiS047@wD<8r$k_FA`B-^p}LU=B|N67<9aP!}rY^u&vkuTQ@E3Zwnv^uvEd ztn)n*rA$xGr2A7;|9F2)XpFgWI!c)#rC+$<(+eb8Z~Q(i22D@sNf8g3WZEII6oyjP z{Cc*w6N=V53qn|GL}wUmIt=T2cj-V-PZkT_LZOOSw4Sf)9n<;5h~>WGo>R(RQdT@!TP$biJ-Ogl|Fxbe!~28%jgbHFK1(?_AG%F;)r+G) z=Qpei5J&5oJ!OiNUgp2%H=^q$bUos5J+7B(T0nD{~2ZdOG-3Oh9hK0G*Fc0B&`YH5h z->BfR6A9>k=vcj09rH@rvHYT!2c|p-B@ z^l^h3gB-?s*^ke4SU3*X%{IUFs2=SWR{Mo(q>zX6Pkw4Z~VVYmK?e-hDdp);x{BvNp z^}O4>xV_mpix??$o7X#k(rz}Gh7`I*xO`FDY^1ffe3jnOSoRiU3x6+dyU%XL8hisjvf*C3MqbW+ z+2O)s`+CVwV0+1Rb^TObKg0D@`{6ds#F<|5BJ64r7t#F%rHg!h?cSuv7t`)H^q!)( z1uvNwNzcpU#W?tl@DLqH*m7jP8?zJjoc=vXpT9@;HX zwKaLxS_UiwmI2FvWxz6E8L$jk1}p=X0n318z%uavXW+o0ku+y{ASHQpoynb-x#D>_ zSI<=Q;&e5>n&P3IIwY4_oEzg%d#QtO5lWm@Q5}i&oXwOxfp`M(a-m!+_(X?+7I2L1 z&k~IT)pD5%fe}aIjDJ9ui?VQ`kgNLzoS|np+`)3DR1ryj*ccRR=39qx)Rz`VofxXG z8uueDhOZjt{{WZ|xbvN3G=e80cq)QVNAOGpb9|mV^M4e0PO8s%Q~cHvZA;)3dH4FH ZT3;Xgio?E0upfp{L!~Bh*A8K9%HIa3j4l8G literal 0 HcmV?d00001 diff --git a/2046/problem.set b/2046/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2046/stdin b/2046/stdin new file mode 100644 index 0000000..ffa5d5e --- /dev/null +++ b/2046/stdin @@ -0,0 +1,5 @@ +1 +2 +3 +4 +50 diff --git a/2046/stdout b/2046/stdout new file mode 100644 index 0000000..ad857ba --- /dev/null +++ b/2046/stdout @@ -0,0 +1,5 @@ +1 +2 +3 +5 +20365011074 diff --git a/2047/main.c b/2047/main.c new file mode 100644 index 0000000..9b35c7d --- /dev/null +++ b/2047/main.c @@ -0,0 +1,18 @@ +#include + +int main(void){ + int count,i; + unsigned long long n[3][40]={0}; + n[0][0] = 1, n[1][0] = 1, n[2][0] = 1; + n[0][1] = 3, n[1][1] = 2, n[2][1] = 3; + for(i = 2; i < 40; i++){ + n[0][i] = n[0][i-1] + n[1][i-1] + n[2][i-1]; + n[1][i] = n[0][i-1] + n[2][i-1]; + n[2][i] = n[0][i-1] + n[1][i-1] + n[2][i-1]; + } + while(scanf("%d",&count) == 1){ + printf("%llu\n",n[0][count-1]+n[1][count-1]+n[2][count-1]); + } + + return 0; +} diff --git a/2047/problem.build b/2047/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..e90b7795eff9908faa484d4b6b3ea0085f0859ac GIT binary patch literal 8668 zcmeHNO=z4&7@loXjrM1^9whY#wxugkBuT|X6so(W!7o^~wGm21hW$%+>F#FPA50FF zlyt#$vyzM8#fuj&BE1wBwX#?txoC<|P$;NiWf%1-LA2}h%s1cm+ezx#!@Oj^_h;UD zX6BjigV~vE{`JT0dxZ!L39-CO2oXdPyM?HUFfDNq#X*tsRP2T6bJMTB!sws`2HhP! z;(U)pDQBn8&JL!i_MyR;&_2e-;i$q4DJ$v43N2Smyy!km22}?+83_Gh*L0u5V%hIX zS*}zQ<$lP-I|o9DH>xu{-)k_U@$S(97f)u=xnjD6n2A@>cvCu`z8Bo$u=8%*!uMpP2E!iLk*Ne9BElri-CX z6+evcc9K?D2+m~$+IzR)iYR=p<=fEA<681vZo_AO?vM~g=shT>Q2fGN7C#UEdfHL6 zXIoSDBM?T}i!xCymnL%A#6)T-mx51u7=`0__L6+-_08v+pYH$s$15Klzj_3*5Q^A$ zzba37K4XwE%$M!>UHgUoaNexrn1`SG1+PQkPT%PN%u>0M&W|4-$2hVHBtafSVSlZ# z%g5u|CqGs!1C{~HfMvikU>UFs?8LxpPW_g1@%Nvw*E{-Ws|{8E%4s$y|L*mi#<5SZ z6>%ERJM{}&>$N8lBZO1m?A!`Kuh*Cci)QhkzIpj}-<(1Mw~T%MJ_XKY0aBqxD?d1;6B9sKyL}}D$ITz371ma=D^XYs!U7 +unsigned long long f[21],sum;int main(){int i,t,n;f[1]=0;f[2]=1;for(i=3;i<21;i++)f[i]=(i-1)*(f[i-1]+f[i-2]);scanf("%d",&t);while(t--){scanf("%d",&n);sum=1;for(i=1;i<=n;i++)sum*=i;printf("%.2lf%%\n",f[n]*100.0/sum);}return 0;} diff --git a/2048-i/problem.build b/2048-i/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..fffbfb1e4200b082f6b38a24413b77fcc2e990a6 GIT binary patch literal 8536 zcmeHNU1(fI6h51ucCC$f1Fb}A@V0bi>rc|ghy`icXl}i=jm9=YD%Byo*>zX_VaA>y3AP0GomN1(g)beI0ieN^Vhz ze4!Z0w^iPFj{^`6wOe^OvNOT2;&t-lcp?!?EyQwg^2VE0@eZm0EHmzH+Lm85o5^=J z?2T7a@j@y9%U%0z2W}07h~^8qWafFL_r`lq#dG${vYWbcg+Yj7=A~q2UL-T|tdzT- z??);gpCKley)jyrR?p|;C;%5?a$;t}Wx;unkJLFQ9?s_kXIM6#B}67A@{8$6HYFAc zxqpo3gyHkX^Bv;n>CRJ#)ZD+t3t&Fy=fq>#9gp*KKNmcQY&xCIIO}=$YpQt5j)P~u z#KL9kyr-v6K5@#LJn6h+rUy63OtUHg=jD!dfT(ns9ZVuWm>+xy+#%DHCJKXxp=6BM ze$gc2Sb_bm--}x@oP;K)A17rp#zje1G{9q$B|hF!h2KVdHg%!CO-d1(b&d&>>Im* z)P2-m8|$B4%ok$mkw-?5M=}B@(A{XfUde3XcSy;Mk0yMti$nRsd?~TEN`#xP}wo7SQ}X2VXJPuX-c2| zo$M2x;vD>T#ot-}i`Md=vRl-u+tq<_MEKQswQto34P1meZbVk&MriLFa(w=3+<19q z(+CW+ylI?U0|1v>Q-WGodA z26y2WN_3~RcXOa2@3G_H+)k;#-FV!Kwi`18ayEqSYrj-*mr#GNe6ms}zfj!H@-0M89hB>v20nZ^_5Hh){Tin5_Yki0f%8z(edyit k10EU0Joo<ZM4W`&j^MpGcqk;c0mlja1p;$bqW}N^ literal 0 HcmV?d00001 diff --git a/2048-i/problem.set b/2048-i/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2048-i/stdin b/2048-i/stdin new file mode 100644 index 0000000..f844cb0 --- /dev/null +++ b/2048-i/stdin @@ -0,0 +1,5 @@ +4 +2 +3 +4 +5 diff --git a/2048-i/stdout b/2048-i/stdout new file mode 100644 index 0000000..daf2c5e --- /dev/null +++ b/2048-i/stdout @@ -0,0 +1,4 @@ +50.00% +33.33% +37.50% +36.79% diff --git a/2048/main.c b/2048/main.c new file mode 100644 index 0000000..e21f267 --- /dev/null +++ b/2048/main.c @@ -0,0 +1,17 @@ +#include + +int main(void){ + int i; + double p[20] = {0,1,1.0/2.0,2.0/3},p1[20] = {0,0,1.0/2.0}; + for(i = 4; i <= 20; i++){ + p1[i-1] = ((1.0/(i-1)) * p[i-2]) + (((double)(i-2)/(i-1)) * p1[i-2]); + p[i] = (1.0/i) + p1[i-1] * ((double)(i-1)/i); + } + int numbers,temp; + scanf("%d",&numbers); + for(i = 0; i< numbers; i++){ + scanf("%d",&temp); + printf("%.2lf%%\n",(1.0-p[temp])*100); + } + return 0; +} diff --git a/2048/problem.build b/2048/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..e162537d367e01da2bb1acc980414011d89371fa GIT binary patch literal 8668 zcmeHNU1(fI6rRnG#y0V8KqXRzZE+<=NZR527QSrfgn=lw-6Bv%T%QQ=wiyhBZeZBeSS}_?kf56E=h?{g( zKbyo{EtE2wn;p+qOx}E5AcXlkjE9TefEJUlIzHx;@mO*umVuKu-+;-t&mx(!(@B{hl(4^Zn&Pc`$o#C>FO$M9$(OmuZ6)7VsAcokFZ_JWaPib*J1L7=nNsQ z&Byt&xKjO`4iCNX{NTWl`xy&)cmt+fQ)KEKrmF0_@R8ZgT1W`ar3KpEtAL^pm}_|k zntohMel}Kt>7U#w#0>Oylo6C#p)X4<54G*A_aUCKUbz>B5DNEY&uli+lT3{FOq@tg z08@6La2(EXBz676-l2E4zxT$DkApprz!pRiZQE4oaxra?PRy5a{5?@Cgq%0qIOe9k zKVv%ts(qvXLnpGiSgQNkZj2)_4kyT?DD3ZINb~WS!Q{smp8=l%p8=l%p8=l%&A?$h zf5Sd`b15K1$qF{#!r$6GtDh{PF@M=EEMK@&F2mmT1MJZEQ`?1=k#e~_Jl}i(C!+oH zVmLo|`;v1WuFPrYm)}M;|GAxCTu|Zd&KVk<(;5|yYrQxFU3^?;b_hyVyEBH==&8UE z;KHjKFSm}>RxhtG*#YjgNFzS1ReBl~Q$k{6w&{fGAtKCAbCkeAo|FlCFtMD4^2y4_~OFHZ=ZTu68%>Af!+m|#)m+4fp zUOxL5iNf$es0-cnUFGcz6Y>|4=#n5%fZw#*JT)JS>Fx>ct zwI^6xM-AG@_1?ouZuDxyA4VVP3r~n}_uk}WIJ^y~Paz&M5w#lINS$Aqn1$a_DXeqw zt%wY&Xj-ckg|>K%n(u8#jgA|gF?x$I-|REsGvG7eGvG7eGvG7eGvG7eGvG7eGvG7e zGw?rTpnX@zD2LVFCwUbfi5`>D_%S&(8_7(FgPGt$A1~R|CAl2OJufb`=ZbiDp(L;% zG98}C$w(q8U=P8bilwr#98o9G46dDXlSI3Lve8JIz?Fc+J%58t#bxYxEIONu;SN2* z?sldkiL?mwB}b!}<2@(Et +unsigned long long sum[21],f[21]; +int main() +{ + int i,t,n,m; + f[0]=0;f[1]=0;f[2]=1; + sum[0]=1;sum[1]=1; + for(i=2;i<=20;i++) + { + sum[i]=sum[i-1]*i; + if(i>=3) + f[i]=(i-1)*(f[i-1]+f[i-2]); + } + scanf("%d",&t); + while(t--) + { + scanf("%d%d",&n,&m); + printf("%llu\n",sum[n]/sum[m]/sum[n-m]*f[m]); + } + return 0; +} diff --git a/2049-i/problem.build b/2049-i/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..49f7ef353f9103511d04aa08eb889be01751af43 GIT binary patch literal 8536 zcmeHN?Q2_A7(ZE4E!vtCs#fRlZY;9-vUW4-5C)0l;;A+|*A|ALhvp_-14&x)!dgUD ziGyBZu=-hKpyC%nk^KQH%If@3TNzTtk5d+i5TVd0V*EYlp4;8rs^69Kz&X!(Uhi{$ z=UzC?({FzN<F1*rEor5NQ-P?W=_i8=kbZkM`un%vOkAoab`N#lK@DFM0_&t zvEcmV5xD2-<8-cg=j5O$AqqKBTFj^Ba$>$*{KtH58hSq{-X+4{Tc;4Y>3_=?Mm*K$ z<|EmgkLvTjH$qr*`TShLeV%{6hRSzVZrbtk#(UJ#cGco3V6NV2r$V6^l zs>_?}5Wd?{axfU{1M34H26xFYq>07AV^9)CWM4KIqg>&G&i8#M)~7MNMD^3~;^MW_ zx@|D#zWZJqy^k=-?`EV@Dvso`sgd+zF0GvQgHs)1^PLZuC!YTPjaR=t_xZgCb`C=a zC>a~LLym`CnRK8d*e}J=ckLzmK2KthjrJHkaRa3X*zU9O{E5Xy3%rVrFO~DED z5C%PO$#C#Hs${}PlSV)zpb^jrXaqC@8iD@<0#n@niC3GWyxzNsdlIh?+z+;9{z04L zYXOJF=_&~^9wr4}!$pc%tdIDb*`^y-_4W2p=KO z`t&==?V%RDdqQtL>3DyPG`rsJ;#XdawxqC+Tfgz1Xjgm#k*sF6t5*WH*=}6ubUM6# z>Ia#xvi%vm`4N`3d9!A2+pE>pj-A}Dwpr-S3)17%Wyi6_>r+iQFF4u{B)fYUV=qm3jOcx2Lue_SettM6V`l$yVZ#WOK~A1_P9QC%TTHCa+bt zu;1W1x3A&>gUD=~*Bg1%dHf2memVNe7b~5}`%rfxmoSgl57=PwiB4n@d}S6BYy1rN zS-Ltme#9!0W|1^axm*ReVR;A-kRQm)=``p*90jLAf1?u7n(prXhz!eU(%xD~$u}*l zzyID<+-KIJMnEH=5zq)|1T+E~0gZr0KqH_L&21qX1GY9 zKaA$}OGUQAis8YSm`4M;JVVkjq>?pVAi<%4KyN-M^0Okdkg+P|40_+w6n->6oh`7( zX4r{RCC{FsA1QiRYd@w-2BwXJG9C&^WDW&n=TH7XaSzG(70T_aQol5WA86eE{)5WC zfe@$}^$o#kDd|znUiopKjOL*Hp90mpjJdLb&hy^Ah#4m2b_DIk#X}*n2RJI=FWj_U A761SM literal 0 HcmV?d00001 diff --git a/2049-i/problem.set b/2049-i/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2049-i/stdin b/2049-i/stdin new file mode 100644 index 0000000..c935501 --- /dev/null +++ b/2049-i/stdin @@ -0,0 +1,3 @@ +2 +2 1 +10 6 diff --git a/2049-i/stdout b/2049-i/stdout new file mode 100644 index 0000000..723a3e0 --- /dev/null +++ b/2049-i/stdout @@ -0,0 +1,2 @@ +0 +55650 diff --git a/2049/main.c b/2049/main.c new file mode 100644 index 0000000..b223555 --- /dev/null +++ b/2049/main.c @@ -0,0 +1,30 @@ +#include + +unsigned long long c(int n, int m); + +int main(void){ + unsigned long long q[21]={0,0,1,2},q2[21]={0,0,1},temp = 1; + int i; + for(i = 4; i <= 20; i++){ + q2[i-1] = q[i-2] + (i-2) * q2[i-2]; + q[i] = (i-1) * q2[i-1]; + } + int numbers,m,n; + scanf("%d",&numbers); + for(i = 0; i < numbers; i++){ + scanf("%d %d",&n,&m); + printf("%llu\n",c(n,m) * q[m]); + } + return 0; +} + +unsigned long long c(int n, int m){ + int i = 0; + unsigned long long temp = 1, temp2 = 1; + if(m > n/2) m = n-m; + for(i = 0; i < m; i++){ + temp *= n-i; + temp2 *= i+1; + } + return temp/temp2; +} diff --git a/2049/problem.build b/2049/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..05932873e4ae5d53b18279a12b243e82293db8c2 GIT binary patch literal 8692 zcmeHNU1%It6u#TE8f|q_5J}L|ZEd6~%})_*DMBJ0oMNKYMl4FX+01UTOLwR+aoO|wfXW;JKeEs+DH}4iA(j>&h1|fuoA~p$85>aZR4aGo_@^J67`m6d&FVNa3 zkw$o1#5g};pp*mp(SgPx%D<)2CR~i%n2stOA!Q*kR-oocFkWQ~7K5%&xEKiWMn`q( zjbg$NrOX$KL-{pRFkT-BVZ2s%goizcW;fnluEB{XlZo_bA_rSAUfhkh&mB+frs`PM zPrdrY9v-xKoh-)AXD zPWT>^b@5u<{F>bW#KCypo^ptk>Da&J*XqWLy77qp@wi?VPj0vf}i<#4@T@3S|(f|E(VE&43IHeWiAF6L%fGh2x z@I*|iNvJ#`81@t$4C_aGhC_krS3Tf(Ohb1)Dy}+TItz`*%+pt>J)pf+0kD<%bajJa zE*SRNub8FJw&>IUFtkhW{;5_I`Np$H40F-2&VEm`&$i&x7vbj&Fw7}V&GEi@W+RqL zV#UPVM)~PakvV8PgOSssS_E=(N4CN$CD$f8P~s4+oP`~3WyfuT6O^YW9q*@Lw6D-+ z&(LI*;;5_qbpw|{x|nJ#a-3928P*(T{Y%X?NI!?5wInB)q`j#^R~vu*HDmvRR^mCb zd)7GhId}iq)#^oHZSydtL)$(HBm|$2kGOl*$s1O&Hm|SJYRv0Z_^@4OYZq%a`t>EN zcFsPzbiKZRPJ5HbU0c8LgkIxw<2c&->H)o`mG^pmtK38FQh(L3`m5+YJ&WB@mStF$ z9gC%}u6(A}pjW%Uzyo@{xP0ttrQSY=F!lBYRbNx}m#F*7+uldhd!*i8Mq5du5-YzV zK$6GRl_hFCh^~A~?MZ42(AwjoJsxG9P8V?;=E@#Mq4--zJnqDk9e! z@Ene%(gOA literal 0 HcmV?d00001 diff --git a/2049/problem.set b/2049/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2049/stdin b/2049/stdin new file mode 100644 index 0000000..c935501 --- /dev/null +++ b/2049/stdin @@ -0,0 +1,3 @@ +2 +2 1 +10 6 diff --git a/2049/stdout b/2049/stdout new file mode 100644 index 0000000..723a3e0 --- /dev/null +++ b/2049/stdout @@ -0,0 +1,2 @@ +0 +55650 diff --git a/2050/main.c b/2050/main.c new file mode 100644 index 0000000..8b23ae6 --- /dev/null +++ b/2050/main.c @@ -0,0 +1,15 @@ +#include + +int main(void){ + int input; + while(scanf("%d", &input) == 1){ + int output[10] = {0},count = 0; + while(input > 0){ + output[count++] = input % 2; + input /= 2; + } + for(input = count-1; input >=0; input--) printf("%d",output[input]); + printf("\n"); + } + return 0; +} diff --git a/2050/problem.build b/2050/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..c6bf9ae2760224d6c20bda95f676c3ab89bf2e1e GIT binary patch literal 8668 zcmeHNUuauZ7(dxsE!#91h}3_O4WrYCc9S8UAhcr_Z?Vpc5 z&N;txFPwW$HvhQ$=fgro_6xDLPY4l(ieVw@B2G&@0X3mgCZ}FAE*WpVN$;RU2I1c# z=DCePDd&s}bAusX``DmQD2%ajIG!>>N-KNCqScphzT~5r45|*OK@ku6!7PWwS`bQE zv8wZxT~|2YB@n_?qbkD3euEK}?;+*r=aac?VL4ldFPzU(`6g66F?rvWJ>yGPta84z zr~<AS)}y`K5wfw#xsQ&rieWgYA7G|G{;Za&al}nC!_H zLwk;IL?s{&=kwQ;AyO7n|2Do+l`pRH5eM^ezEocxyjL^RZ@g}tnfBj_c!)P(${ml) zehy`N{-bzrkJF0x=Q4uQf41nJ1m;?PfRb@sOFqjjV9vd8M2KaS2cb!5P#8-M@(`@2 zJ&E>g8y38FA`U$S9j{i(PPJ`s*ES;dYI`Pq>$E*r?>OgOyK`;(zHPW$tzNI^80}g&0^}w7 z=y~M8NIqkcHeAQ5cQBfZfVOeNK~$^9mYZmaun*x!^($U=bL$kn&hSrcjJY|pJLV}j zTIW{!M9ZwTlkeQ@a*)x3y+jjbFY%4{d&B$v7QaHwG@faom^#->tfE}c(Yf_2GUvE` z-MT}I8`G^HX`Q6y!b)TWHpTt#gQsagf+hRqzL*WDZ>w)X+WZzdg#B;~s$|#j9l`Q_ z^&NOsm7l2cQ&k3IwXGS@3}^;41DXNNfM!55pc&8%Xa+O`ngPwg|C@osM@Q#4!o!o2 zSJ$cZWtq-hmW$O?IU~-NW9yT=wDT^>8rxbRIu2Axr%D9AL?rI`_sL>TX0K$^RV#}-^c1^0QcUGbBEiFr{i5Ta zcld^P))Mh<484<$#}O9A$%g+w0LBCEo^_0c@Kgv-hw#}Dz7WFf9~X_@{}Xsms_u9v ldEOGPi{ln~@BE}UzXA3=4hKB__3#PxsZ=EHSt0aI`3tq7XaoQN literal 0 HcmV?d00001 diff --git a/2050/problem.set b/2050/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2050/stdin b/2050/stdin new file mode 100644 index 0000000..5953577 --- /dev/null +++ b/2050/stdin @@ -0,0 +1,3 @@ +3 +1 +5 diff --git a/2050/stdout b/2050/stdout new file mode 100644 index 0000000..68266cc --- /dev/null +++ b/2050/stdout @@ -0,0 +1,3 @@ +11 +1 +101 diff --git a/2051/main.c b/2051/main.c new file mode 100644 index 0000000..c058f67 --- /dev/null +++ b/2051/main.c @@ -0,0 +1,20 @@ +#include + +int main(void){ + int x,y; + while(scanf("%d %d",&x,&y) == 2){ + int i,k; + for(i = 0; i <= y+1; i++){ + for(k = 0; k <= x+1; k++){ + if((!i && !k) || (i == y+1 && k == x+1)) printf("+"); + else if((!i && k == x+1) ||(!k && i == y+1)) printf("+"); + else if(!i || i == y+1) printf("-"); + else if(!k || k == x+1) printf("|"); + else printf(" "); + } + printf("\n"); + } + printf("\n"); + } + return 0; +} diff --git a/2051/problem.build b/2051/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..12d9277acd799f0678cfd40f25a58317e18a9d20 GIT binary patch literal 8480 zcmeHMO=w(I6h4zi6KdoO93l z?z!K)58m8+29#=6-z`-Os#HCHLF>cM<4c3bXHKCW#|THln$L9`MX3|hbJLL# zB%~jKO)S>(xnj@tv6ZTpRehzBzfe|7joLrrSs3mQ##o=s^7k#V%+p2%T65>_5`{3MHt zeq0mBm!b1LxP>;0_CAyul&H{`CAyC2IQ!Q<5xZBTWA{VBklyE$&3bLJT*^-tR>}qA z^blI+@zss3&t_ULJ@~=)m9g~kpMK#!26Z9__v`YE)oFt~h4nIy?_pHc{o9yK;e8#UdZ3mMkhZ`90QI4$ADwNG2j?*4E!G$ zIG0=dHP`A+UGx9sa&zl1{+M9X+|8|@yK_~xKY`lX9Z9y|N9UTqL$8j%(>Zge^>yNf z>&Xub+TIQA-Oia^V?WBki#w8RwsIqNgcrS}~~(0W!|w*oX0t2%zSwV7D+yTLbidp(5kYZ)^?szZJT&3bqz=wLW_8`ZO$ zxz=}6Z+*Mb%X|crS@?gI!an~O96)4BN7Fj!Xbsh6^Z)Nt(^|W09RrR5$ADwN zG2j?*3^)cH1C9a5fMdWh;28MtGLW7~@qk0pSzh+(%W##){V*=CU$4oA)KclJTEYc% z<2<#)(CQ2GRVtw*6z(NQRAo^Wmx~L{MiF=4^9+BiGGD4nh6fV+WRu4{6x*RWnb0?f z`VfNWMoAp>*!z2)X+Xs<6y7sN^&>GooTh(go3*-!o8-N@DV>{Lms!ys0yy(uI#*T1 literal 0 HcmV?d00001 diff --git a/2051/problem.set b/2051/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2051/stdin b/2051/stdin new file mode 100644 index 0000000..ebcee1a --- /dev/null +++ b/2051/stdin @@ -0,0 +1 @@ +3 4 diff --git a/2051/stdout b/2051/stdout new file mode 100644 index 0000000..c339280 --- /dev/null +++ b/2051/stdout @@ -0,0 +1,6 @@ ++---+ +| | +| | +| | +| | ++---+ diff --git a/2052/main.c b/2052/main.c new file mode 100644 index 0000000..a69bec3 --- /dev/null +++ b/2052/main.c @@ -0,0 +1,13 @@ +#include + +int main(void){ + long th,i; + while(scanf("%ld",&th) == 1){ + int state = 0; + for(i = 1; i <= th; i++){ + if(!(th % i)) state = !state; + } + printf("%d\n",state); + } + return 0; +} diff --git a/2052/problem.build b/2052/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..6b108dddc4e8ad8da99fa2cce5d2f6c23ede3fb5 GIT binary patch literal 8480 zcmeHMO=whC6h6;J4c2yMHlnET3{KS+5)~JPAWn)8pVU?xBZwfEOfohDlQGV`!DJys zhb#sw%|_8~+eH^$xYAt>Sctp2>_WlCSZ1I?7KMtGj^B6ReVI2e+P!!WbAP^b&OP_u z@7@RR&H4S+i~lx?I3I}2uM?3J%H2MZ1#!_6*@ohyD0OP&n0L+_JxOh^IKA+Vh;jaa zqf%qu*|A<1JwDy56N9lfS#JtGlnM&70ehh&<30Wun}O*^V<*OTy3!}}UBGzNpq8($ zs*>>n5W;wyjYou|0sSW42BQe$si{I~rci+{8E@Xi+im=b$@{9TS>Hr8s1(cJ8i!=O zpG>@dV<(PFPiz>Js+BJn%af{DzHm|F-t+jy#N(M$h?6lwOIY(|Al@R%0twE~)C=bpB#V%>{*uvQ=Bc$_2(xa;WIX zJ<&c3%;(@4+8o*sQBI-6g}yBDeZ=kTKXOH)yBfFQG12q#o)6Wkm7!8GKQuX4nlw(^ z(Q+LR2LAr;=g}jXYr}gQPY+(Y&wC8&L_XT2%cl{h4zd^fUFsSOzQumI2Ga`^Uf; zzwz9!|K%=w|8n#Gjl;j{rnYidS`BpTFP+rFC3Kd(CTj7Qy_UoFy4UiDy_MAW!y#Jn z@A&^*Y5Db6l3K_>SHIGf)Xk+so!w6A-lN7>%{G+bxcZXgH@sH+ey7vHlqaFTUTb1T zj%#?&+5rp)mi+o}?)is{o$M{BJK5W)Pu$pf70t-$PL_*WoI)k-KjA*bH|F*e^s;yh z&rWXA-w``#hs0aHKlAqMOzY9qb~_p+szvkt_k(E@W(zF?mI2Fv zWxz6E8L$jk1}p=X0n318z%pPNcn2BC45UZ7>`acyKAj9#dE|$Yy#A&li&9Bva%u(% z=->j;R-o#{c$pv+MC9_R2~)8oamWW$8yQJ3>bmmb1 yA+bf{@P7>c9mD@O(6XzAdB!;YEP=ymR&%zw2)oE6uU(tcYm4?}cC>~7PW&2vJo$ +#include + +char a[409600],b[409600]; +int todo(char *t); + +int main(void){ + while(scanf("%s %s",a,b) == 2){ + todo(a),todo(b); + !strcmp(a,b)?printf("YES\n"):printf("NO\n"); + } + return 0; +} + +int todo(char *t){ + long len = strlen(t), count = len-1; + if(strchr(t,'.') != NULL) + while(t[count] == '0'){ + t[count] = '\0'; + count--; + } + if (t[count] == '.') t[count] = '\0'; + return 0; +} diff --git a/2053/problem.build b/2053/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..9c09af11a7bb7c86039614189e122947fb2a0c39 GIT binary patch literal 8696 zcmeHNU1%It6h7Pht+91BP^BeC$KXm8+@xwX+KNf+&v!(lo6K&a&kFaznRC8- z&OLMIyE8C5XMeo^`(J%Tfi9wzeMDqIsfVaSHhXj!>OzH>nK#^Do+q94whrK85SmwuV%)8h*>=;49|}<@ zmSTnNq0V|^AcRXjrZP0v6N0KvU&Gw<87Ykl!TF`vr5 zuM#@zeXi=kNMY=kw%P~?QObUp$}Wghb}=V$`+j__>hYelFz&43MZ6>L>lg?U;^f5K zgfD{qlUq>R?+xnx_3bO}IbvlIBAXV47E8taKi1P_`2Nsyc|P;c_lXuE($Rmb z7s7mA-w`!|vA-VQcdS~3i03kyTy_VyU+=i8M=R=jk?6ngBo}%z?9Ov_X6o!|=j4=r zCa&!FctbrYwr85E0I$hkYZ%Y%D5uy&L6{)yAy_T8?LEIqWqB_-eiisZ*vn54y$8$w z4Ad|BxzqQyKc@X8=I>mw9wmARt_|hbNU4w?NvC2X3(M&RV3t8BujAYEm4hFAbNuqB zk*RQBU*9`VVoYB8fqo+BGaAFPV82#)9zWN9;q#0^ImXx6{oEbUAJ{oJ&Of_cC?+zI z$q3ewiXjQ|6qL`mZhQPatuXUr#4unOFbo(537d{P)g13RH&b`KfH~NY+ws75$W}AL;&3C z#iqM@u~{wMsed7{bI)Ccmg@nx>eM;5ir7aSD>uoybOK%jN=U=hH|o~L!C?9Rs8t#A z4PNUGazfoLZ??Ej;|A8V$Fzu5;rB{ii>K*Tx576OX@!51$Dif#mOTD~Bhi_)p|4;j zW?SLUU~5SpZ2X4vB>C02ahpAU32xkEk6$|**V%iCy$yKbf*mf<+sGnA z7zPXjh5^HXVZbn87%&VN1`Gp+f&VrG1H++nyuyKTZqCVOxQL-YjOO*5d8$!9G%zlf z(10#3GCBlQh)1&$*bIvKcv2=FQ7E&-iK8A$C$c~+0fGK(kH{oN;zA-`Dkjh)kMe1r z%|ugKI$F#vQRSk*%x^mqt4 + +int main(void){ + int numbers,i; + scanf("%d",&numbers); + for(i = 0; i < numbers; i++){ + char ch[2]; + int y; + scanf("%s %d",ch,&y); + if(ch[0] >= 'A' && ch[0] <= 'Z'){ + printf("%d\n",ch[0]-64+y); + } + else{ + printf("%d\n",(-ch[0])+96+y); + } + } + return 0; +} diff --git a/2055/problem.build b/2055/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..f36a0e279ac3147cf0f03ddc5dff3d2331f1ae5e GIT binary patch literal 8480 zcmeHMO=uHA6n<%=7Hv&>k&0Hf#i&(iS`idPNu-M@R;{%KDahC~sSPG+$PYFLr4oAx zwOXWS&mI(d^r8e5+nZMpJ@inef$E|3P(_U2+nr4|sd`uDkvDI?H*em|d@~E1oe$r? z{M<$4s3)4LBO(`c!AUet8frxQp#i86{r-#kus(2=z18BVhQCFe=OY4z7}ReJR)-k< z-PJyl7;~c?QaM71ba*n&HB)NyE$qc&(6l7m8DlvWane);aK2PJ6HJv|wfQDN23G>I0;{EzK1g3VHwYuc`wVh`HiO1$w>UR45-cbT;^+%?TqbG zl^YF0Wa4)t@sNnb$0iJ1y&tb+KHhT{#}g=1Om>#(GMZtzB&ujbuaGoIR^~=|9Uo+ z4#zq#bYdQnAc7!ApgdkeGx_U~nE6qn7*Gr-1{4E|0mXn~Kr!(DF)$R!e+uN*y8^T4 zidbD>HnX*;|KN2l(ArCwMSYV|USFHhH_z%@uGu^w!e1L^XdPWP5c>eo_2%+M?wdca zueu(24XkhEwuW6#+RZL=mT%2hudnCdqgxMLd3~kWW=6zex(l4AV<}g-Wknq_qLz7v zglXgoj=a8Eyi+Qbx(k8ayRMsWOP;4_D|zNo_RY55gYjQ4d1A10<0z>38PVhX)?8dh z%@ZO|O5-ww7j5%D#X+t>?3Ul9`Ca=IENd43-&nZL{|g%Nj_rm@DOW7Vy!`+7Oj^sY ztYSbhpcqgLCWIz7gy1t>K-5@%qFL*QPrPQ=DVcrrYiNr!RwJ;L4FVk40_dH91wJuS4# zaI3;@m&3R@G`>dcGqCyXf|Hx1bG_X)mdwBr*s*c_&OXX~@DhMVN=a}&ngtaZs1 JZ6g3f&@YQb2DktK literal 0 HcmV?d00001 diff --git a/2055/problem.set b/2055/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2055/stdin b/2055/stdin new file mode 100644 index 0000000..2580b96 --- /dev/null +++ b/2055/stdin @@ -0,0 +1,7 @@ +6 +R 1 +P 2 +G 3 +r 1 +p 2 +g 3 diff --git a/2055/stdout b/2055/stdout new file mode 100644 index 0000000..450ca6d --- /dev/null +++ b/2055/stdout @@ -0,0 +1,6 @@ +19 +18 +10 +-17 +-14 +-4 diff --git a/2056-i/main.c b/2056-i/main.c new file mode 100644 index 0000000..7d05dfd --- /dev/null +++ b/2056-i/main.c @@ -0,0 +1,30 @@ +#include +double max(double a,double b) //求两者中大的 +{ + return a>b?a:b; +} +double min(double c,double d) //求两者中小的 +{ + return cx2) t=x1,x1=x2,x2=t;// 保证x2>x1。符合图中的情况。 + if(y1>y2) t=y1,y1=y2,y2=t;//同上 + if(x3>x4) t=x3,x3=x4,x4=t;//同上 + if(y3>y4) t=y3,y3=y4,y4=t;//同上 + double l=min(x2,x4)-max(x1,x3);// 求宽 + double d=min(y2,y4)-max(y1,y3);// 求高。 + double s=l*d; //求面积。 + printf("%.2lf\n",max(x1,x3)>min(x2,x4)||max(y1,y3)>min(y2,y4)?0:s);//如果高或宽小于0解为0,即没有相交的部分,否则输出面积 + } +} +int main() +{ + solve();//问题解决。 + return 0; +} + diff --git a/2056-i/problem.build b/2056-i/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..c983b3b0d9f10cad0c2894ef8ff9ac0309c5a462 GIT binary patch literal 8576 zcmeHMU1*zC7(Qt`EpzirZ=`eTve`%{+Rmb&=rEOin9W4%*5D5F2}nNJk+?Ag-Ew{Q%>K()hQAjAl#B|W0l0_4l( z3-R3kP$%C65<))EC~>fcqF3`hqz7z1Ih#l?B(fOm$_sl?Q=_+Nz2^gTzoz)7xLM^<#TAbKj`lW^Y31#lvQ;s z-F)14?tRnxKZsm>`z`arMQ0BOI^qPTlvMCSkVkjb_!+3qu@?}c7fmnPezcAR0!k%9 zXvZ+fn5bU^rv16o_V^>{Q|}h%|HK`KThD$!{GGk();$UkK;b?gF66Sq=~R4pW-&bj zOgV|dbr_c#Up&`+{>WF~K7FI`O8rOfW28=q<409_*1;Tu3?g3og*x^n=Xn{0I>y*D z@-x!yYt4=MuPo;BiMgRShOmxQ97d35P&i*DVCUnk#>|f=UIx4jcp30A;AOzez<)CX zvGD3IyGEb6hbr3GHT>pY(ik!u#tIJz3R7)u<2a!pYyhdSCfAddL;RtOHbAoRFFBHs zA>-6Fl_2tkukKU7xu#CSR-7HT9LB36)8vS;j+0IDaSS<<;hxjwPzr* zIzG@FS)Ca0SA}&FPD^`D=#Rlv%6i#94p z${Nsb)@hAM9qu}9l=TLCfSMc7Z*J1M*0SE*x2~}VsI38!U{ui!>*j-Ilf6AuF~z@T z4BjyY?^&;F&DyRp!Rew^x^Z36nibbdE;yzps%W=ft*JO}U(*e~ADHO%nYRczTeNQ7 z|I?nFYl(3V^SWl~(k#~z(}wXm50CWYbkR-gOYO(S#A@^_X}^0~Q&N5_JUklj(PFvS zY&N%#Yo1%q2ndu0+kso8>a$)%v$~w8bsc2kt9Q9wCfAKqA))rq(vJUo^AC&(>oyEt zsD+pA`X|?$!EZ3s4AMGMe)1-o(JRg1D%#2{DzW`5IA?kE-oB4sFr7T~PXvcX(#fMZ z9SiXU{UGj^=V$)TYV?Q3YIq5xi{ayCjeQ^Sn8NluqH_;opyRyv zpVs;+?m?*MJ0bM~_d9H!M?uT3l9y1s@oOEJZ>fAI<@+rpLM!k P?7*GG>69JFFo^#G=avi> literal 0 HcmV?d00001 diff --git a/2056-i/problem.set b/2056-i/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2056-i/stdin b/2056-i/stdin new file mode 100644 index 0000000..88720ce --- /dev/null +++ b/2056-i/stdin @@ -0,0 +1,3 @@ +1.00 1.00 3.00 3.00 2.00 2.00 4.00 4.00 +5.00 5.00 13.00 13.00 4.00 4.00 12.50 12.50 +0.0 9.28 -1.0 -9.674 -2.3324 10.43 5.435 4.0 diff --git a/2056-i/stdout b/2056-i/stdout new file mode 100644 index 0000000..d6612ac --- /dev/null +++ b/2056-i/stdout @@ -0,0 +1,3 @@ +1.00 +56.25 +5.28 diff --git a/2056/main.c b/2056/main.c new file mode 100644 index 0000000..14f8a2f --- /dev/null +++ b/2056/main.c @@ -0,0 +1,64 @@ +#include +#define ABS(x) (((x)>0)?(x):(-(x))) + +struct point{ + double x,y; +}; + +struct retangle{ + struct point p1,p2; +}; + +double in_target(struct retangle f_a, struct retangle f_b); +double field(struct retangle t_a); + +int main(void){ + struct retangle rtg[2], t_rg[2]; + while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf",&rtg[0].p1.x,&rtg[0].p1.y,&rtg[0].p2.x,&rtg[0].p2.y,&rtg[1].p1.x,&rtg[1].p1.y,&rtg[1].p2.x,&rtg[1].p2.y) == 8){ + int max = 0, i, count = 0; + if(field(rtg[0]) < field(rtg[1])){ + max = 1; + } + t_rg[0].p1.x = rtg[max].p1.x; + t_rg[0].p2.x = rtg[max].p2.x; + t_rg[1].p1.x = rtg[!max].p1.x; + t_rg[1].p2.x = rtg[!max].p2.x; + double t_f = in_target(t_rg[0], t_rg[1]); + t_rg[0].p1.x = rtg[max].p1.y; + t_rg[0].p2.x = rtg[max].p2.y; + t_rg[1].p1.x = rtg[!max].p1.y; + t_rg[1].p2.x = rtg[!max].p2.y; + t_f *= in_target(t_rg[0], t_rg[1]); + printf("%.2lf\n",t_f); + } + return 0; +} + +double in_target(struct retangle f_a, struct retangle f_b){ + int count = 0; + double x1 = f_a.p1.x, x2 = f_a.p2.x, temp, p_x1, p_x2; + if(f_a.p1.x > f_a.p2.x){ + temp = x1; + x1 = x2; + x2 = temp; + } + if(f_b.p1.x > x1 && f_b.p1.x < x2) p_x1 = f_b.p1.x, p_x2 = f_b.p2.x, count++; + if(f_b.p2.x > x1 && f_b.p2.x < x2) p_x1 = f_b.p2.x, p_x2 = f_b.p1.x, count++; + double inl = 0.0, a_l = ABS(f_b.p1.x - x1), b_l = ABS(f_b.p2.x - x2); + if(count == 0) inl = 0.0; + else if(count == 2) inl = ABS(f_b.p1.x - f_b.p2.x); + else if(ABS(p_x2 - x1) > ABS(p_x2 - x2)){ + inl = ABS(p_x1 - x2); + } + else{ + inl = ABS(p_x1 - x1); + } + return inl; +} + +double field(struct retangle t_a){ + double r_f = ABS(t_a.p1.x - t_a.p2.x) * ABS(t_a.p1.y - t_a.p2.y); + return r_f; +} + + diff --git a/2056/problem.build b/2056/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..cf808bee49b710feac40363e4c31e6528a4e5d27 GIT binary patch literal 8692 zcmeHNUuauZ7(bbt#<_WKWN5^xQBs{gbejrRP)Vd$PcYHwI-S~i*FVV`O|y}v*ny5n zOz{!}K^W+RG7)6pOMFm#5t>$PRnRFiCipPLKM5$5DLAB9f4_5Y+MA@S3O@Ld1LvOe zedjyB^L@Ybog}@dpa1d8pBD+?xj=~g1|fuoDmDpG6an_cm8cTcG~?m>jK__KAEdUm zcv{6ZCE}chp=k~n`vzJ~)O@{FCmb2R(H&K3VVb$bRE|BnwBuDTL@*dCd+l+`8y#EK zY!rF7Xqpqb$>E6=RXg6@AcT0AITlU1Il=4TVHs6yJaa6OKAgxx(~cK+@OmA4%H(~e zboe(ik;|qs2OWcUyrT}@jm|h_cWJ@KfN4%h^$p|p88mxa7G-b$LF!}-lZ{@t=^ z9z5hqlMX!H@y|&ULD@Z@c+9(IG0pVQdj9zxJijx6vKx=_Hgkj~tLG{jdEkDdKhiuC zfi~VCv;3yW6oNQTSLv_Ex!uKHKnTX-McaqASwaC@oOrgC5 zHIC{oJU6Uv9^B*X@56lJw3kbv2%v63-8ngt-I-1e?;Jgn9)-+u6)OFBY4gDNuRXha z-pcxqzVpIwuLq$6bwX_2tm@58nL3mmh?nztuHA*}^r3Q$F>bu&d${gdT^sA~IWmz; zjQ8Ht3qMlBFhaQjmFvv}Z2oR?Wb)H3|33!yO6!O4BYWiYKL=+dV9k$tixq-E6S zi-XI{%k){6?|K8LL6(i<(yGZq%`2^0S(w$O^^q)mq@#Kx)=Z=@6Np%~NTC)$g=RKV zm_>J1k63e&!W_DDIx1$r8v-~a^P&9j%c1;Fo__7U`N+u0 z4m2bGH^!bXux^;pM#bJ%#0xgIfu1<%0k`NtG2o&{mOP{hmSLFm2X~+Ylm6f?bQFVq z_4^cqE8)_2$#~a_%)4&f{(l+wy@dORffM^b4*UV0q4HhF@CkobdrSq*02n-|R&CW& z-;QCcxE;#In@gajwCNNyJana4UEZ;v75QnudqzJ0ArIvf;V1Xc)xX8ZuXag==M}lF zYmd$V5z!7x9oe>k^SY=_U%@;p8H*T#1A`&8xAg`;gys8qu;j4{4LmRi>q)5{ot3+1 z(Pm~zNF75)U3>In2Pe)o;(n}wZ1EXqv}t}NID;V$h7^&f8~keNSS3u0u)kxO(_Ds+ z*cmXj0O;5`s?P17OQQ5@*SKjW3hww6Bsg1 zV0XFbjLXMCgYn`+%h_FG&`0QLdc1RYX+i2avptE9a~V8*#`}fmmV{Q^3PzfdH8$hp z0qPA}F=eY=vD(?ZlF3{I1UZ@f%K2kmBa>gD6L^5k#>+TI_K}I51YDERZCIaH)Y)`a z8vF&bn#QZ646-J7*U)BaM6GbFqPW!e5@9bXRHx)cZMp?oahN|JwBoM?I!|amVlUcT z?+`@|a%QlZoXiNCQl~bmIK@wu*7Lq<&>n)a#<0_ps8M@IRu*!l-U`klqE}x==UYhS zojV|9&4u_CX732r5e+^FyC4f6>ig#^%ROH~v)pq^Jx}8qEnoc(n(&_Go;T1|#_$l0 z9|1GQOl^F_9=ELVC3-#SWMG{tdU|h3C;7FEU$R1MX9vaIA~n@-;oH!%^6yg?_WAe6 z7W^9CX8#4}soH;#c&-y02)AxI02~@U<+M4cU3XGzOdbuLM12c(ISp$rAPcud?YZZyZo%*0e;WHOh) zo%s;qZyg^>WyI~tR05ZUccwCCZYX;&krQFQ>bO8ux8iYT8y+VwhoZW*deI_YRB%x9 zsGCFe-hyKq^at?vgzqt~cH}rNIw|8GQH?kMUx4@V&~r$Y5T0(CB)R1$+T`Ij8E?PU zeJ}58aTCQ7!b@{?pUSIC>I1ly?u_5GBgX}OGjdZg(y~8_ + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.problem.build + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/2056/problem.build.dSYM/Contents/Resources/DWARF/problem.build b/2056/problem.build.dSYM/Contents/Resources/DWARF/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..c97ebf95f415891883a62cfb5dd9ad3952c37e70 GIT binary patch literal 10432 zcmeHNUu;{|89(=)oD;`x6W3|Gl+qDKO46b_|4UXvmyBd2ZVFN9Qny38vz_b2$gwT^ z8j`7+qdcHWV^SgzV_R`SFsYiT5Sk`2q)9{KVK37rkPs8)0V=j9G-*7+v~Iue+;bhr zX-D?3J>3%>pY!{^@BGepzI#5$_n!O5FF(84%$UI$V?k8(*(LhW}-pb_Cd4;!LkE@z*wvMKeqfVvv$B4SF6XR#c>omBYUv*t+k5Z*# zS-GrLT3JfwvsS?=0^gdiew%n>X*|Wh9$VHzzHXar;|pv5>bA+2@x({_&MTIcP5dYS zIy4{UmRIWip?&P_5z=qw)y(uGrzR(+y`1Q5h?`z;js~F+kBX~8F3+2o2=O{Me&#z` zil(oDr_)vaPA`~v$iI*)#`t+VSzfTRnVe0c+wooZHbbW#c$>!KE0mMD#FAZV$!CHeQd1j=Ow+(KHX;`&E32LLqBg z>f*w*k?+X;E}xf!N4ozDzCt3^$oHb=>(VqY?vPJymRtDuw&wd#^S!-8zI^hD6b)(g z@A8PdUeCYFJ(}2W{0R6F@FUk0*0Y3u&;|S2t%QnNkX`tW3`xRzv77qgmAJTXX zKl};P&y+TFy!&SQWwW$s*~@mS?AW-EP0Zsy)=FpW>^#Fwqva%u3%0|or9{TNCjo_D z{0R6F@FUk0*0Y3tM1pEm25%446N5GGOAA$d41U|q608`!N8^%9ccQXS8)1w-U zZrP*i^n$S#)4Sv6t%jHin$f-DjC6$Mh@>Ozm?%2pq9ZCX@wDNHXN;J57VYzB12OSa z!#p1m<|xmnMYH6Qm}tjPDa+zcY2FtR`(t9S*&7k^EfJ6ll4l*UPxAea;Br(%7*?Ri zJRA`%>mWB}+%(;x-Xj)%uOVdcbFr^1T4YRg#YIP4?1F78kch*dD+p5@0*O@xbh}Gl zfWew*kBdWTarc_ID=tJ#45r1=H8Bwv55&a`(QLqK-LqP+vszbHF<9~0b)M5qAn%jGs=6JNe)!KTYEYtKtr` z3s*YMPtywc(5U1yW{<&#s^TCt0LK(K5csqRV%m$1>>i)eDe6%m^$_Ycblm4tpP;w-hzfvBqHYfP3DO{w zb66Gae7>B_+UyN1P zckw^ddM&Os9A43THjD*Sg6^UNdsT2SS$i5sZ?V)8m8LT0E{-kN)8{ISq>Jd0>y>Ohe5OJV^J?1F3Z2^;2PshSz)J#JoH4gd zpAV8sm>c0ADnw!A=Em|Gp_6KuSswyp?rG9=d!yDBqEX=JqeEM9^rHx{=u;8C+{V;2J4i(Gaw z-g+_=!sFd$!ywDR-E6x3e&CjNgSUo4M2dIAcEfJEoxliSh=zqiC(&hWoKE&TXJ+P3 zcRpzsOPPGGv%fEjzs{ai7MXIazpt+^3enI|bl`|eLi}6l{cZ`yy^H0QOcL)a^-knd zQ%XSZSTZj+J0Vpv^o^Lz1?VY`LE; z4=~4GDzJhDfR6!~Wm&??vLq@cu1@P(N*7=^pp$x;t!yUs)MMjQxJc?H7$g?kMJq=k znW10Rp>K|Vp-i_I+RTq{-gu(&vx^guokg8TRhfX6zJaKyJ&yJhg&0%0iavc+QSs)a zIjA(wNppEN0(z<)WQamv7UUO)RIm_wQu#(>NKd|!&AIoN4kv$f + +int main(void){ + long long a,b; + while(scanf("%llx %llx",&a,&b) == 2){ + if (a+b >= 0) + printf("%llX\n",a+b); + else + printf("-%llX\n",-(a+b)); + } + return 0; +} diff --git a/2057/problem.build b/2057/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..b6431c4a931778dc8d0ce00bcf775a51edf34b43 GIT binary patch literal 8480 zcmeHMO-oc!7=A~s#5BiE87W+?i7e8T7PSb*aOg^s<_Aa-2S>*oxHAs(LAo=3 zB40VtOc@c?a#^Y%nj?dIMEkjzT!iTBJQunY>hFcNRD7lIw+MMYvZD}#q2a+&7a8v_ z)sezHH`<{JJcLL`rqbxy;?1|ZhZn=9JIW5s%PC3)%@hIhrP7&jYD?wK7iL0`uUdIH z*a@gq`F1LWoli_etVATqI&Z#&%6CZl1B3T1**3q?R5}@rUsVp?eD_qoeaa5(mXh3T z5F!)57LAXIXncH9;?n(iqVi$SA;8`ow#BZouQ@J4baf7Px-7hZCHv~^uWMiV%x&cs zB5sM)bSyk+i9|a2$9zs2oDal10{-3e6v7($TRuO>V}4FPV0S*8JNLOMJ_kMB7tV*e zx}7s@c-F}nV#vi4A&=@xeKS92C!_;WCAXCZQN6U-mBE;Q6yyqiSQG41jPV?-aU0}z zH|5r^l{Eg0t%7uYc8ijH-r+gBW$#~+wZr6aM{ zv#mUjXqcT?4s*eH3B%^EMPcxxMKhoo&Gy|Fe&46a$|6^dt%zid!zZ$PXKd^Xn z;mlLnWH!u&q1+PX@ToVuSynrD8T$FqhFKoUnX{Wzd%MXFxal@zUvkW8)?`EL`GdBD z#ZCKi_L(_9#L+`Jv*o>+U17gE>9>}@Q79DJm(AH1#+B!bg}_5r7XpvCChA#e#HVTJ zKp}9Q+rAmTEm_4K)Lr0nLDBKr^5j&Gy|Fe&46Y=GoTsx2N|eq z_V;7jbwOPA$;)sN=KEp3yuO&EMN0bXf+E2e(CKlYdPb?ykvM=YKEd~rWg<2qB2$sk zOgh4M-y;Zbij73$6tFKOR~wbP(}B9yCvOhr9};^dw*SZQaUcJ0aEq=K+%vlIF%Pzf b*}Ah0I@sWw`C-z literal 0 HcmV?d00001 diff --git a/2057/problem.set b/2057/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2057/stdin b/2057/stdin new file mode 100644 index 0000000..8f5cbfc --- /dev/null +++ b/2057/stdin @@ -0,0 +1,6 @@ ++A -A ++1A 12 +1A -9 +-1A -12 +1A -AA +FFFFFFFFFFFFFFF FFFFFFFFFFFFFFF diff --git a/2057/stdout b/2057/stdout new file mode 100644 index 0000000..c36275d --- /dev/null +++ b/2057/stdout @@ -0,0 +1,6 @@ +0 +2C +11 +-2C +-90 +1FFFFFFFFFFFFFFE diff --git a/2058/main.c b/2058/main.c new file mode 100644 index 0000000..01ee3a5 --- /dev/null +++ b/2058/main.c @@ -0,0 +1,18 @@ +#include +#include +#define MIN(x,y) ((x)>(y)?(y):(x)) + +int main(void){ + unsigned long long n,m; + int count = 0; + register unsigned long long i,a1; + while(scanf("%llu %llu",&n,&m) == 2 && n+m){ + register unsigned long long num = sqrt(2*m); + for(i = num; i >= 1; i--){ + a1 = (m-((i-1)*i)/2)/i; + if(a1 > 0 && m == i*a1+(i*(i-1))/2) printf("[%llu,%llu]\n",a1,a1+i-1); + } + printf("\n"); + } + return 0; +} diff --git a/2058/problem.build b/2058/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..b3acfc25491a728a8c7e942f9fbdc4fc64c88b8b GIT binary patch literal 8480 zcmeHM-)mb{96z_6TIT9a6=eRx>oC&kY}YC19)x7;#WP$r-CB^fzO`<6ki@xYyaL>I$Ydcx(>fdV2 z(~k+18gpMAYY*|phuUpI>!^+8hgseEEF--_+bx7mxuz`df2qJE$iPGvc$DwWF@ z;<=`&Gv5gS!c>QJgs=MpdUU>4eaxq36X}IS7D1i)B0AsWIstX!-lTo?P0wd?tp#`H zThRIXbpq;b>un}(2ue-o^4V18HEr+A_nywj=S89(q_$e&P^yr5J(ZbJsZ4U-)7zi# zCpsVBArke@91TyS=e)aUN)1QHq5%)y2k(*k?@0&edxCeknOmt$TIH7J;`3>>kk9^O zK0giLH;(s-&ofx3Qt7FG%NN3U*5~J=9?Zx3g3qP3ug;!%`6YMwjK3$Gj&(vOIo{%h zU>+@c_9H?pANK-;=mGC>ggESZ8l3|jKM_I4IIfBQMd;jD*T5s-ccaD7g2Y(1;5veS z%2lVeH-o-=pupwro54aZJD5(z2WOVjGdk!YaMsZsdwSx&m6H?iJD(0c`uh*JxGw;m z5WNSz_N1@V2Eu#3%yHb;LE`>=9*sWMeBi`&z-@`<+?fCTQZApE8#pz9I#O{2fu2C) zd<#wkzoS|wK86ee1_6VBLBJqj5HJY*7Z4bi>p#lkFR?B6PnNUgUMG_qFMMT@6>i9l z@!d_aI|+5@%jjCQc(ZGG&E2wB?`2%cy&=2ZU0J*->~||`BU^8~TOV5XDvyG-2brP- zuT@S;J5#p%dq-eO+VM&f@~9_ILVlyXXOE(VJipz)y=PBe-IMmQ%kndp16r0tRa&Y^ zd!QoiQx&=HR*}34z9Wlo?pXH9JBahS9yvACKYc?0ij6K&3Sh%xqcb&JO|IZTdskz z1bE7IR#uy;*XtO`(h$az;kx^I?StF(`cPRGuf#5XQ4jCHS`UARUWl_Bk8qag`Fi+c z@Jq8a)_y{kSssCF-$SCQMaNI$B<{9!O0;=g+pnDtr_%+8otR*MjNQe90*B(p`Tt=r zUWg#)xtHhSXTjN?(f{2j^9+9o=iv~Vrl#N<$Yc8d+6B#nJ|i0h3<3rLgMdN6AYc$M z2p9wm0tNwtfI+|@@c%@h??~tzEANZ&a?ZO9S8?3u;_`YlD=vv_s4t=xaABNJQacPS zH$9c1(jZIW9`YO`rEg;(kwW ve81p_34YfAZ+@fT7oDK~REOS}rg_I2@pT6`zx!)bUTyxm^osTYfGNaZKq6Of literal 0 HcmV?d00001 diff --git a/2058/problem.set b/2058/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2058/stdin b/2058/stdin new file mode 100644 index 0000000..32b12ed --- /dev/null +++ b/2058/stdin @@ -0,0 +1,3 @@ +20 10 +50 30 +0 0 diff --git a/2058/stdout b/2058/stdout new file mode 100644 index 0000000..4dde50a --- /dev/null +++ b/2058/stdout @@ -0,0 +1,8 @@ +[1,4] +[10,10] + +[4,8] +[6,9] +[9,11] +[30,30] + diff --git a/2059/main.c b/2059/main.c new file mode 100644 index 0000000..4535ab5 --- /dev/null +++ b/2059/main.c @@ -0,0 +1,6 @@ +#include + +int main(void){ + + return 0; +} diff --git a/2059/problem.set b/2059/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2059/stdin b/2059/stdin new file mode 100644 index 0000000..e69de29 diff --git a/2059/stdout b/2059/stdout new file mode 100644 index 0000000..e69de29 diff --git a/2061/main.c b/2061/main.c new file mode 100644 index 0000000..d8cb69e --- /dev/null +++ b/2061/main.c @@ -0,0 +1,29 @@ +#include + +int main(void){ + int numbers; + scanf("%d",&numbers); + int count,c_count,i; + double score, credit; + double sum_s, sum_c; + char name[35]; + for(count = 0; count < numbers; count++){ + scanf("%d",&c_count); + int if_do = 1; + sum_s = 0.0, sum_c = 0.0; + for(i = 0; i < c_count; i++){ + scanf("%s %lf %lf",name, &credit, &score); + if (score < 60){ + if_do = 0; + } + else{ + sum_c += credit; + sum_s += credit * score; + } + } + if(if_do) printf("%.2lf\n",sum_s/sum_c); + else printf("Sorry!\n"); + if(count != numbers -1) printf("\n"); + } + return 0; +} diff --git a/2061/problem.build b/2061/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..48cb7a87c715b9c9c491f8e8a606501c2ee9c923 GIT binary patch literal 8620 zcmeHMU1(fI6rODxjcMxLh)6`mO?4&ukkrtJN+~351~=H$Xi|)V4x9Z+)^0Xoe=q@s z#3a(~8c0jQyeNGP{=kAh<{{8P@*uTTAN9?jEGS5yiVt1CZ|>ag-5cwJPd?0nxijCH zbIzRkW_Fo-=exiDxci_Gp@Tv!91ub{C?hRGtcVC&LOhNVLs4pE;AQ!ieEn5wnA@u7w}!Ga$u zRVbDw3injOc&9-KLp@?FJnT8Nns|-;7*9>5va_i?jDqpTOuQZwfSA1BlYRLmW^#qb zgoE)ens}`y05R6`zM@p3P|Rm?lg1(#Z_UJe+Vm6qr72f*C{@b6m&qknCYPSkxOsi6 zCLZ??g*X_)?Qx&nCnrF-QiB6y1HK;Y2fd`;J_*#^C!Du8ccpS!RhXZin8~WyV*bAI zyfEBvo-aq`dit?alQWG~*q>h*{>;x?2V%cJ<8dE*qEt5iZ~1kac%8<9*dLGc_4XW1 z8o$%CL+4(RgG1hLEE3=inDV72QwYW}O|3tQ|AAv{MclcxqCP=vq(9=~In=b{S~ABf zFk=mN2{DEGFvmrMFbb_hvH_y~+7(5}5J?3iG&B z{Nl>zUmst*^x5TO*FS0h=~?JNoe)Rbba}zU)Iqv2U!6bxC;Y;3IB)hb=R7LU)$RjfWBgk_o9B(7y^7p*K)~p-wwJvRalGosW2qLRdzrJ%a}<4hT(0W@417~osndgAtI-(aEp3I$arQd?zWdypQ;1$Zb93cJ2GS^*Sj1lh&ZLGJGcn?-ibDU)+iMK+OqxI;gsMmNN7PVh7&J>T6wIA8yL9uoVEp~cxu0NU-(LyAe zO|yt-PhU3OCPruS`T4Fkfg>!}=SgGkubB(qb&sQFIb+`2*yejfJ3PbM8=(2fuNA>Z z(!96jOg(4npq<5*0n318z%pPNunbrRECZGS%YbFTGGH074E+BY=s4Or$}Btj6|chM zi3=(*bwN#*;`yX_EgxR%=OvrIBv%u-=f$P=!XCa_XbG)}d}qKj9nWM1^bzQ1anW2% z6LkX>67d{?Dok=b`jGnpoA` SG-+I(J)#Un`xwV~l)nM*oPf3f literal 0 HcmV?d00001 diff --git a/2061/problem.set b/2061/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2061/stdin b/2061/stdin new file mode 100644 index 0000000..ab3062c --- /dev/null +++ b/2061/stdin @@ -0,0 +1,8 @@ +2 +3 +Algorithm 3 97 +DataStruct 3 90 +softwareProject 4 85 +2 +Database 4 59 +English 4 81 diff --git a/2061/stdout b/2061/stdout new file mode 100644 index 0000000..6cac716 --- /dev/null +++ b/2061/stdout @@ -0,0 +1,3 @@ +90.10 + +Sorry! diff --git a/2070/main.c b/2070/main.c new file mode 100644 index 0000000..a661bac --- /dev/null +++ b/2070/main.c @@ -0,0 +1,13 @@ +#include + +int main(void){ + int numbers,i; + unsigned long long fib[51]={0,1}; + for(i = 2; i <= 50; i++){ + fib[i] = fib[i-1] + fib[i-2]; + } + while(scanf("%d",&numbers) && numbers >= 0){ + printf("%llu\n",fib[numbers]); + } + return 0; +} diff --git a/2070/problem.build b/2070/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..82e9aeb9d9a9ee62960e86d353555744543fc39f GIT binary patch literal 8668 zcmeHMU1(fI6rP);8f|qq4@yLZZE>abA!({$eF*Mqf;Tj3YgQVHGVWipOYd&N{$TS^ zNJ$s6Zny4Bp$dZd)CV7mCx#`^-^;vKZJNKOL z%$YMY-`oqcGuQw8?dI)5Sc5{W4hSJaC}NKgH4&jD?nALrq&yyfX8P3h3(wQrFIGSN zTf{uyAyCT1^n9W}M70n1`-H|A8;7F`Bc!Zk&s1o+63iFA8wLFqhnr94vd(h01Ya;;Mdv%J!+5$Ti1Z*y5gNvg{`D4I${qrdG6Ts)QtB{L;}14Q*J0S z-5lCf{sZ`K57Uaca~X#A-YvRgz+B69XvT3Z`7XDCId^Bj5X;beQI4bdg|RGt9{lyR zV`$H|LBVGyA}IS%#;fJhxRXzfXI7jHFy(#}j$`WN#>F>A9!+1J{qgBPCf|GfA^5^5 z;;uVYdBnr?K@MWRY{&1~FYJf&W*x^obmS+z4%V%{(f`~^xsol6JvD}L%v-!%+Ue9h! z{s3$@p0w*{w>N7q!ADB$`t{B|tk|sO;DRMKYYAA~hpkiLm+evGFO zv&{#aQ1Q85^el8MM`!mJWY2N?+Py)G8`JJLv>v0i1uL2nQOBubW9GS%3;6<%3YyFPaUYyZ}0mFb{z%XDKFbo(53GHFkl!k4E*;Q7&$PS;3!98l2_Ns^l6#SotBH$WGN#~l)|kTFYVMNxlG~S7?;|s z9h^ldv09=u8fdwY%sT@92>gX?p`5J{9Rym&HFjlz=rB+@oh%Y~VoBWb56D7JX3u2P z)k+q3=t*|BzmUuqMU)2{gQDe~b$ABdAxqsDs#A@76?V@+c(}oM=$&(pu>g(-@Js-o z2;lhuX8*i*=0OtgN%b9XjAt#ux(IHOch66%`Sr1{IPCMd>){dVQK?DXwL<8d@)rQh Bnj-)J literal 0 HcmV?d00001 diff --git a/2070/problem.set b/2070/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2070/stdin b/2070/stdin new file mode 100644 index 0000000..36ff177 --- /dev/null +++ b/2070/stdin @@ -0,0 +1,4 @@ +3 +4 +5 +-1 diff --git a/2070/stdout b/2070/stdout new file mode 100644 index 0000000..e543d39 --- /dev/null +++ b/2070/stdout @@ -0,0 +1,3 @@ +2 +3 +5 diff --git a/2071/main.c b/2071/main.c new file mode 100644 index 0000000..2817592 --- /dev/null +++ b/2071/main.c @@ -0,0 +1,21 @@ +#include + +int main(void){ + int numbers,count,c_count,i; + double hgt[105]; + scanf("%d",&numbers); + for(count = 0; count < numbers; count++){ + scanf("%d",&c_count); + for(i = 0; i < c_count; i++){ + scanf("%lf",&hgt[i]); + } + + int if_ch = 1; + double max = hgt[0]; + for(i = 0; i < c_count; i++){ + if(hgt[i] > max) max = hgt[i]; + } + printf("%.2lf\n",max); + } + return 0; +} diff --git a/2071/problem.build b/2071/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..c71504e327ecaf4289a1e605ba381e03059e1512 GIT binary patch literal 8620 zcmeHMU1(fI6rS588vEnj_(w#AZE>ZFY_y10N?{{eywTQ16G4SC?r(PKW)t>@CJ%)z z=8DU@vcC19pokBBD7uIiAM0=OCg_WZ4+<(-(3d_Hk*?o2cW(CXP4u}BbKvaEcjlZk zXTG@?X77CW_g^<|6~Y=3qOnH^VME235Uz-_C+>whP$}o8pH04&eCZUe!(t7?T@myA z2uCRwlCLZbyQuicuuW);+E|WKdPrHzt=8D{B%H5%0E@xU$GRxuQQw*EsAvSCl+{{2 zUEMZ?^Sus2nCcGg;bT8wT<5z*8@zn7kSnd^DzJs~)pWkN_9rIq+p?p+Otn@imKU`{ zINt|4-|c#wI4DE8F(75Ve70E5%3?Xctnl!Dbag)NIfXc!!yEB_xvxh-kd!mi3)6uS z?4Q~Ke_ul__Z82aQbtKxF3IZJQhK>0S8A32%;%@!^TBvu$bS$^xwss7Om^gpAfEM& z>jcEXc;@4C=Zlo3)c@5tsq;efN$Gv2YU0~*#IVeN{?LO!nG${0?26+gMvmZtL zZDAuYpT{V4KXj^ItxT1Q>8b2mDGN-w56U{OEc~>2_U@;~K0o(l=GD9Iln=rN>V!D3 zSLq`@rVVl!>s9sRy$%ZJ;kr4-nn#cPhS%O2%#Hcy*Q&MLQv8`X>L{k+1bGO``7T90 z{vOtt{1`C|7zPXjh5^HXVZbnOGcfS7)BN2z|7QbdOQ(JO7mLkjm;UMZoz_?a2Op;; zoM!U+hI<({7TgtE>+sreKh%b%`!;$lg^#%mwcC%XJjdVl(!CEG!cMBNi`!vusW9SW zE?w+)0{KzJX%*&nVRJHVIyhhaI^tNHPV-yj8N+bXU5B~la`26-R#SC)ANBkF4fg_U za1qz+h{|!zo^U&`Z73%U2rtf`^%Q5#s6m9Rf5Un6c3j2SZ}I>b9`!T!2FV6RyoVyN zh>I9w1)RBSZ9NCrbQ=I3Q_7zd_P)HK$o_%zfb7=E>(0}gw#x(b<5!*YUvq0tf3?NK zzrC;1k9~qpKlZ8my@FpMPP89rqnV!X$IhYc@cb=$f1r*6tMC2H9uKCy@6n58MXZz; zvG|cvelJe6Lfj9f1Y4eY`Cs=5v{e32rLfOZ_9HT)qG=s;6x!uy9r2v&9o=5g?Jlmy zWEe0E7zPXjh5^HXVZbn87%&VN1`Gp+0mHye&cMW>$$6GIk&wK)PG!!>OyP`Ntfwkj z@nR*?N$}E6U6RW*?u~J&-Ppoc2_;rXR3<}_`BbqaV2{GSf{W`~p6D=8HIph6cw$N1 zEAEj?1({pTW$LvY?#xq6e{d;PEQ=UFXpD$1?+Gb>hi2PSH-zf@#61do-#+|rBWT%G z!h7~0o(|#J5S|NR&WDRcbqA{NZxj5U60}EgyS#H9Qmtc%RmIJa#pBs0N>j9ham+{g E7daBmBme*a literal 0 HcmV?d00001 diff --git a/2071/problem.set b/2071/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2071/stdin b/2071/stdin new file mode 100644 index 0000000..54459c5 --- /dev/null +++ b/2071/stdin @@ -0,0 +1,3 @@ +2 +3 170.00 165.00 180.00 +4 165.00 182.00 172.00 160.00 diff --git a/2071/stdout b/2071/stdout new file mode 100644 index 0000000..8fc2289 --- /dev/null +++ b/2071/stdout @@ -0,0 +1,2 @@ +180.00 +182.00 diff --git a/2075/main.c b/2075/main.c new file mode 100644 index 0000000..10625ad --- /dev/null +++ b/2075/main.c @@ -0,0 +1,14 @@ +#include + +int main(void){ + int numbers; + scanf("%d",&numbers); + int i; + for(i = 0; i < numbers; i++){ + unsigned long long a,b; + scanf("%llu %llu",&a,&b); + if(!(a%b)) printf("YES\n"); + else printf("NO\n"); + } + return 0; +} diff --git a/2075/problem.build b/2075/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..12d4e727cefe02003a935bf5b43276558ac25f30 GIT binary patch literal 8480 zcmeHMOKVd>6h6_a#aGgeC@Nly@d>tyf*?XFUc6%Q)fQBcp=qNH+{TgzwmY#11_@MG zE<|+g#)Utipx^^U5f?7HsG!n-?g~l~! zqR}P>V{Wp<6h#8GL; z4Tn;t+?8x@P-Sx$FKgVmACFBw?m30HIY;0LYVPX{ic&|qdb=VX>|evahWi`YSDd-| z+)CwqRTvviU-s2VG5^PWVH%zf_78>pN9U=O-~YFK3H0au!hFQhd^~s2b5nl~x{sYW z?jAW7o?)kHoxl`FFJ6RsOjFz2@tk$)0FhScR!3y5_5_s!jGv@XF^+4Ze-xO{!8CLV zdIicUl&CP4CAyBNpY7+4NO)GGK0GFRT%PleQX${rXVV>nWB#BCS`W>6ct@w=-Q9=o z-+BCY+lOnL+j)*boye-?y6g-wZIJC)FZ=O1j0(p&fI=VV+_Lv0=#JIL#`ryBg<@uS z_u<``M>dTh$W|1NH{t~R?J$`9Sg{OP1}p=X0n318z%pPN`2QK`^U9yR@h_cT<nW!c2!C6b*N8Mf7ScdBAsU?|qf?1^c8R0{GQ?5>-l^m3$@0T1_a?b5pE+W!~8E9)yoZ-ydQoQWbm*Fan`(a#OpU%sK +#define ABS(x) ((x)>0?(x):(-(x))) + +int main(void){ + int numbers; + scanf("%d",&numbers); + int i; + for(i = 0; i < numbers; i++){ + long hour, minute, second; + double h_a, m_a; + scanf("%ld %ld %ld",&hour, &minute, &second); + if(hour > 12) hour -= 12; + h_a = (hour * 3600 + minute * 60 + second)/43200.0; + m_a = (minute * 60 + second)/3600.0; + double angle = ABS(h_a - m_a) * 360.0; + if(angle > 180.0) angle = 360.0 - angle; + printf("%d\n",(int)angle); + } + return 0; +} diff --git a/2076/problem.build b/2076/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..cbe83eba11ec529859dda93a8070686d36f5e605 GIT binary patch literal 8480 zcmeHMO>7%Q6dtz?M3AsHP!t46ONCJgC}|LfN>Ir`U9lBSN!vvHC}kSQHnHkBmVZie zpt59I$*Np>feRAi!mWo?;!vR;oEE9R(cU7&!3T;Q2`*6%6+$)NH#=*u9m>7ZJbC8L z_uiW~GvDq=vz}l6{_DZxLWK4TQQjkjuu#N+5Eq2amUte;MUir5>OJQZ=i~>p_DZN1 z{wHFdQ4ApEtn<-qZ;0w2?zIVxF*i;}Jf_`J7L%*RZft+P<}elmcTP`=cwaZ1pd5r! z7K){Kp=0XLHv>YLYDh=;*zYi?^L6LPd~zw7$tCj$>d!Z?^Sz=I5R>djP?@;rDv{iNLk8$p3Wv@I-6QixcB+~ zsPpk1q7e7z@H}44_oRg)<&mk`selLXgLUmZJo{C(%hQGZX^ed`3K*lO`Y zFpq93`vL6RgDOCXLFhqSh!N%SDjOI-5kti|u8ICtVD76XbPW1Qlo^zuFqS2_j-a3I zhTYwpLElpVaH)MWQ7YsoGU@n4Vl9)t#Rg>!5Id9zvmybKdvn@1Q#*I%8w}Q)`7{a(VpSam*tfM-b#y6poj( zJ^o(PnEV(q3>XFs1BL;^fMLKe@F+4c=T`5zl|Rq8wZqp!_>`-a?%#I);Y!v;YYvv% z&JI!4xpB$adE2>f)h1Qk;R{}P%dO2d-P-gf;-fTGzGw|qo$Ju*$ov+-#V({ z?+^*S-_sx8q_<9Q9m8x`7oYb01Lu{Vrw;+(?n`BOqf`eAJi1q%tDvh=4^^F=ty>S; z?a8`Z`T5N0TkYsiaJQp3P#>$k^aIq?sdn^h=qpR8#MU3}c6*7(PV0`tGzGHFkl#XWEqGY2%qHSBQajismpK~ z$9*m?uTSK~6_F1|Vlsyd<6??v1gNmMkR|XWByo?pM=meP +#define TW(x) ((x)*(x)) + +int main(void){ + int numbers; + scanf("%d",&numbers); + int i; + for(i = 0; i < numbers; i++){ + int k,j; + int min = 100; + scanf("%d %d",&k,&j); + int c; + for(c = 0; c < k; c++){ + scanf("%d",&j); + if(min > j) min = j; + } + printf("%d\n",TW(100-min)); + } + return 0; +} diff --git a/2078/problem.build b/2078/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..7194d07d066e55a6a1673e92251e7a0a34c1b533 GIT binary patch literal 8480 zcmeHM&udgy6h33qHd^gWHsVkEDo&{ln6z}E24PaXI8tNP#3F)RGMTX%m^{P$zyw?f z(Zw*GGAlQV?SIfLOQB$~kgVEG3ofjiidM?WI_+`BIB{ z9>P)UDRptG*TuvqdfUX>s7>CqOb@NgxrH*dfco<_-o<3l^{4Hpjp=OAfZW(Hn6Ff> zWJ=wp{(L?FVZQCwBecVSL7VR_+Ysc_v$?{2u86k&eAjKhgVvumaqrTm`esVyV&4DC zI`rrJ&gR=;`)Nn1CpS8@uK3sTepcuGD_4!(yB^CnAJ?2jyFW+J6Fj-DEwI)n#;3+3 zJy^eSEGG+P0YC5=OdL;aioyXjAR!J zS?jbHl6Aay?&6(+(W5`zu5CTEZT0a@?qfhFvSXX!k3ySmpbs%$#_>Ij6300LW*=)F z_@oKAV;f^*{K>^qIX8Fsv%{z(pMewT12D&%_X7M5S)2GcatJsC90Cpjhk!%CA>a^r z{Sdg2uKtx?S{qH*kH=#8^sHB&t*95A$Fj5@K&+^BT2=L=rq;*Qvv~a;Ot}AHMCEC^ zeqn7zwRmtvNCRR;HSt8qqnc`tsi*P!F_;MX)`-d){AQunCR$??YgP3y{tb`FH3hxZ zh6c5{bU#*A&GwI-P6v@b8h_vr)t`qaTEnUp|9-XlEAs4NoBAEKnSk~7mk9XyetPMb z(aR4So#b8gcakhw**OJ*gR^~@6o?BH8s9~Dqk z@(j&0_NS0!ey5VC^Lt=B&ejRArLGb-gz{_q{de2Su-!?AfJ49`;1F;KI0PI54grUN zL%<>65O4@M1YTbRh7Kgov-+VFFZ;}8xX$2y7?;=Qiqeo`Vko8OaRFVvLTeYS(#*6^ zBcPbZz2p`>H>-0CxtU5ihr91-hQB{Io%bafTu3(dTlY|5b3A5l4$Z$3JB=OuhrvH5 p_}>O(_kW6mefDsl9SqaGvrUDzhnwWhwP{mZI4?V+O#omB`41}b4`l!V literal 0 HcmV?d00001 diff --git a/2078/problem.set b/2078/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2078/stdin b/2078/stdin new file mode 100644 index 0000000..70fa153 --- /dev/null +++ b/2078/stdin @@ -0,0 +1,18 @@ +2 +2 2 +52 +25 +12 5 +89 +64 +6 +43 +56 +72 +92 +23 +20 +22 +37 +31 + diff --git a/2078/stdout b/2078/stdout new file mode 100644 index 0000000..30f1e80 --- /dev/null +++ b/2078/stdout @@ -0,0 +1,2 @@ +5625 +8836 diff --git a/2080/main.c b/2080/main.c new file mode 100644 index 0000000..d101761 --- /dev/null +++ b/2080/main.c @@ -0,0 +1,30 @@ +#include +#include +#define PI 3.1415927 +#define ZZS(x) ((x)>=0?1:-1) +#define ABS(x) ((x)>=0?(x):(-(x))) + +double agl_ch(double x,double y); + +int main(void){ + int numbers; + scanf("%d",&numbers); + int i; + double x1,y1,x2,y2; + for(i = 0; i < numbers; i++){ + scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2); + double a1 = agl_ch(x1, y1), a2 = agl_ch(x2, y2); + double a = ABS(a1 - a2); + if(a > 180) a = 360 - a; + printf("%.2lf\n",a); + } + return 0; +} + +double agl_ch(double x,double y){ + double agl = atan(y/x) *(180/PI); + if(ZZS(x) > 0 && ZZS(y) < 0) agl = 360 + -ABS(agl); + else if(ZZS(x) < 0 && ZZS(y) > 0) agl = -ABS(agl) + 180; + else if(ZZS(x) < 0 && ZZS(y) < 0) agl = ABS(agl) + 180; + return agl; +} diff --git a/2080/problem.build b/2080/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..dcb8fcaadddd35bcc1fd9d2c619e8df21184a16c GIT binary patch literal 8552 zcmeHNO>7%Q6dsclA|PEGC=C>lsW57hNYc;)s6sf8wUkhC=@?bLSc+LGf${(*!8 zvJ!!akgJFTcO)u;#K8wDrMH+O+MWm;st9`U0ni$OR6>L-gfQQmowav2q3sc*dD6_A z_cL$a`*v2I?Bwe|fBpM5#(Z6jm2Y8;X=rR4WACsajo5u?1{&u_hF{QM*I#{^v~Kdb z#VsX@vj+=sKBh;<+%96i->qX(MsAc2yH%PwFD7S-9ba#}>K!Ns=6MuEL~^$^wEAvV zc8Z)Ailum=t@6g(4?rm1UDCsr?Fl_HUMD|_$J5E|bTSVoZ#+ZB>z4sYCfwV!DZj*2 zuFxsi8*fI&>yrUUmZi5tItQF53dMXTcUmgF@fKyg`=y;^C%JNkf%8)C%}j2BXL6}2 zA-kXNXEGk`AtI8!F)WMK(>^iLI6pW%HteuqKe+aZyY|MVIVeXld*}zG?dzQP__xmcthILJMd;VQpcw>; z-W0h!SDSA#?aYVp(vGjVrbMp6?XF<;E4;1thapb$_9Cy)5KsvGzYqxQ_K#A=fiPXpiOX;v z$9*m?uV2ZtMV9vm!aP=t) zV-#lZWGs_okH=1Dc_Ph*=wn3}tL{Ws$0cZWXO%SK&Q9}*n?LcT;$G-9e5t78>j{0Z zcu30j{XX3jLf`(DLHC4CdB`I_<&o*T2rdYn|634t>Vmj2-dqcpRd7+0g^P`d#9|YS HSOoMBu0trd literal 0 HcmV?d00001 diff --git a/2080/problem.set b/2080/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2080/stdin b/2080/stdin new file mode 100644 index 0000000..3c71957 --- /dev/null +++ b/2080/stdin @@ -0,0 +1,3 @@ +2 +1 -3 -1 1.5 +1 1 1 0 diff --git a/2080/stdout b/2080/stdout new file mode 100644 index 0000000..58b0d05 --- /dev/null +++ b/2080/stdout @@ -0,0 +1,2 @@ +164.74 +45.00 diff --git a/2081/main.c b/2081/main.c new file mode 100644 index 0000000..4a560e9 --- /dev/null +++ b/2081/main.c @@ -0,0 +1,16 @@ +#include + +int main(void){ + int numbers; + scanf("%d",&numbers); + int i; + char phone[12],short_num[7]={'6'}; + for(i = 0; i < numbers; i++){ + scanf("%s",phone); + int k; + for(k = 6; k < 11; k++) short_num[k-5] = phone[k]; + short_num[6] = '\0'; + printf("%s\n",short_num); + } + return 0; +} diff --git a/2081/problem.build b/2081/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..24d2b30adfec23a4d64dcbc8449b3a5598ffd28f GIT binary patch literal 8620 zcmeHNUuauZ7(ZDT?bgk7!lW{VY?@Igv?@|2V~|KL-eRY9ZAB(>%-<#~O-pWqEjTE| z%CZ>9i-Pmj2OsvZM-d;2j&%=$QZuBWtPfQhsqbSC#^3Me+~(ffx@W=j(R07=cg}ad z^POML4JYUH#|MA?{iqOuJ|UJ52q8i!lR+U?L>QJ3PokJ8QclKRGcFky-(;;<0$#W; zVw_!Ja$8vKvZi zl`BbWx5^*y5(r_u$CZbJoeupfUN1k!letV`Aya~rKVCt_8&Ls>$@{MC$uDJH z5c_lLwsfCdCuc#pl=0Yf%+-SRz|X;17kS7T>95|yUPv+ z`#ZwV(~YH^o$s->H@`uZU%v`K?C#HaT*r<`Sx7uAzabTGNOd4~$K!mRHAk1;dpa@x z#_L9W+s%I^{4PX@B*!{5S&Xt^jT;}qTw!Hgr*-qOXheJn6cs~ zg~&k^eU+rL27kA~1xyReb1A3p>uTbubUel3WNmxy0A z?yVV{bgmgc)s4+_##X4Y0EpP@wyNwPOcUms(cm z)jxw~>bt8G!Hv4ns;&lVMyvgEr_({8Pr89NZX5TQ(|J3}9gJqXZMHw6TRnJ}ZkRy* z!hQ3VJE0YBm0w&ntGA->eZS59VrZZf`5L+t`Nn>Ji|0h+=})0zQ=P~Pbd&pJ(f$Jw zbKGXOf2G9@WP2S}BrPHq{tk;V`awW~c*?fCn&WZ*`Z6@jyXrR^ZT@CBf}VqRZvgLh z->%s2@uB+N_Oa4UrT6pIb(#UqfM!55pc&8%Xa+O`ngPv#WzPgD3j+0F z)Gy%Tx|}5%2C`C#B0*OI68C@y7Bi_zIfFa%1jC=4OXQ0p!b6QdvFV(5IEH<; z65tJ6_aNg5XdW5y{KGjPfu?E82%c^n^WkwHp7ddkhl@Y={~$zprsA#-<92!PJfuAj V534peo|-Pt4pEAtJ&a>K%0GZ=Oh^C# literal 0 HcmV?d00001 diff --git a/2081/problem.set b/2081/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/2081/stdin b/2081/stdin new file mode 100644 index 0000000..4160bd6 --- /dev/null +++ b/2081/stdin @@ -0,0 +1,3 @@ +2 +13512345678 +13787654321 diff --git a/2081/stdout b/2081/stdout new file mode 100644 index 0000000..07d1557 --- /dev/null +++ b/2081/stdout @@ -0,0 +1,2 @@ +645678 +654321 diff --git a/3031/main.c b/3031/main.c new file mode 100644 index 0000000..9888d63 --- /dev/null +++ b/3031/main.c @@ -0,0 +1,26 @@ +#include +#define ABS(x) ((x>0)?(x):(-x)) + +int output[1024]; + +int main(void){ + long target, idx; + while(scanf("%ld %ld",&target,&idx) == 2){ + long i = 0, j; + int temp; + long raw = target; + target = ABS(target); + while(target > 0){ + output[i++] = target % idx; + target = (target - (target % idx)) / idx; + } + if(raw < 0) printf("-"); + for(j = 0; j < i; j++){ + temp = output[i - (j + 1)]; + if(temp < 10) printf("%d",temp); + else printf("%c",temp+55); + } + printf("\n"); + } + return 0; +} diff --git a/3031/problem.build b/3031/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..eb43df19c785ea71f9b8011c025b5fcad50df595 GIT binary patch literal 8512 zcmeHNO=w(I6h70W8fxoITu7w~kK%|?+t?Z~pn*jC@D*FFO(If|+hj5|qcf8*KQvhc zf@7u6VM=r%2o;Nq;=)A`7hSlRYO%qM6r*I}Vix{npoQ!VA|1c)zWdTQ6Lnv>2ktxf z{M_%J``vkP^KO3l>(=diMPgkdi#tRljwU-r&WXdGJcQ<UT#3CvI`JBNuo#4VQxxs)Fqyhr7Ne$8 z#Zq~)xaI1^dkcgRYPZP8CEMyt6-$Lo z{!Nq6iFeW9Jz(Orqtb?rfKuiB*-U;)W%6fcwB5cR%Lb2oPNCh25k!I~_jM2iDRpFI zY$OuF{^>1nj4#~Z$iCt?Cu|g@@>x}!&rQx`)oiKopLih*e;?skjwk=oI+e;!{2yKd z<5^#bM>~qg-(B=~qf}}pmz&AMt)+9lj=|dkL{@aX=E97ny7OKgJNoiV?vbP6JMpyP zEiB9l1`Qhk))mFtFS3XsB92H8R1frC=ujL-hh!Lf5KeN$_#$j_wh7I>z7OpLT2#XQ ziSiPSv)^z6oKFA!a3G}LoBndK(4Wmr_D{`cr%d8LXx5Q<=cBWq{51IW2mQBFsUL5C z$@fApea|itv?oFvn({bG=QzICQQ`Z^^)bdZb|3x~^v7gtZp=SAUo53_2VXddIx>?; zf;@)C`R1H}zdmD=A1jst%YbFTGGH073|I#4Mh3<`|2MC4^YnH1Z6K7FKt~Yx)>o8@h<(YIzlSEZ=vRnx?iWp{V5&+T z>u}ea@3Owy&?)$l#u9z^^X7%yt=6HsSGjijjc=D)$xCpzlAqxza;)}<4>dB{O3p(s zP1D)@9Wc{8IyZkoFPWWk(Byz5rzDvYoQQFv6?qtq64gBO@=QDc&Bnh|DeUw7z8fPG zdNjRvI@*dn&YQpgJ~TQKvR%u7Wxz6E8L$jk1}p=X0n318z%pPNunbrR?otMN_a{!W z^xk1!&gsi=HHrISTwcFgkR>T3dWY34E}% +#define ABS(x) ((x>0)?(x):(-x)) + +struct point{ + long x; + long y; +}; + +int main(void){ + int numbers = 0; + struct point points[128]; + while(scanf("%d",&numbers) == 1 && numbers){ + int i; + double s = 0.0; + for(i = 0; i < numbers; i++){ + scanf("%ld",&points[i].x); + scanf("%ld",&points[i].y); + } + for(i = 0; i < numbers-1; i++) + s += points[i].x * points[i+1].y - points[i].y * points[i+1].x; + s += points[numbers-1].x * points[0].y - points[numbers-1].y * points[0].x; + printf("%.1lf\n",0.5*ABS(s)); + } + return 0; +} diff --git a/3036/problem.build b/3036/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..80788d39ae7e39cf912fe6d577419a7a91a05e26 GIT binary patch literal 8620 zcmeHNU1(fI6rS6ry8ZKR1WQDPZEhC$+-{_+IM;mRzVB{u{j=0A(D^*BM6zaagc$F=f44UUT83=KcTXmmJ zV#*Jd$`{55@~fs`yu%=b@$NSs9`-s!OuTx2jHiZEnXyz3PQiE?6R+I_AU3JGmNoe$ zN3;3*goE)uF!3TL9x>MPuA)>jU&y7iM~p`>-f0u>KGRO@mxf%?pwxKw&2)B9rL#k$ z8aJ-*ITMe2h(a8U;kLL>?vvdhT&aEC{oTG6><6xcw=aU4`-JoM=B`vWqw<8o-s-kP#p}yqxSoEj)REEpDy+>fYVz~ef!N=l@wksYQ7V)8ul!m}ycW}e*dLGc z_4XWH>YvjC`(JpjXWxGBGZqW*22A-#lPLt_n5wq#!1uu8ti^=jTq4lBp*`t}xp)Ga zeq2lDcm|lU_H7qp7rYUd|kY!|Pqv+un9C~Tlkh^?D++2vu{Ag!1$`|*3iFNB;o+n96H z6W8!HV%5jS_Gno8@5;71n5Hb)l5Hb)laAyWy zmc`%Y@f*E3d&ts;ERH;~BxJE?dEUA4*UAbz%{z;xCd+%T;m28)&(d;6EWQua`Sr<* z)63S$nJci_4u6cNKhr(znc0&Lt*7+!v}HRyiqv+Zmwjk<$!>OjMC-hB4Ns0#(zQK$ zJi9yw3q~B*BRV(XBa>yi%Iei7X)Va&98$1#^WKA6m0hp1uGe*V-ICMQh%A0vbiPMV z`2S)FQFOima7UY-wTgP!+Od_jxs=MB$#l(nYQZkQs}ow2N%4ZTF3QrTk{)(?&XUQ? zvie(-EY3^oinKpI7?H^tH>Fi;=}^Sye_K}nK(fnlj>@)6OVZv|U9t~rdOVtf>Ar?^ z!J;hdgjN%k$xH6wbJDsjOWP1~W|_0~W+IcfWR=w1l%=i+n%xPtUErt}F>0BMf>Di* zYCUAPFW4s@00T>QbTzM8c-9^xE$8r{OnJ>i(mqy|omJ>8=F;rYmyOg|)(_zfxV5D9 zD+_jO^^CQ+2dLH0wS&4s& z%1ZpaetwRp5C_VS%s_Sbt;8MZ3eU-+b{)J8^O#xtnKd3DYd@gIMo)fyIzA}kIPAvT zJ2OK#$>Jo6v#x3OYiv7xmVFYMg@3P7SZ8Wm&@-xg(^{`+n^GM>l{ ziWhUyN*6EL^d-3(z&$T6wWk*Gc0!9)5xJH?&!I#*BVdogK8B0t!Vpm_P(GQ+61ZY1 z+ykytBf}~+kxGsiQn)iuF#PtBL^> + +struct tv_i{ + int start; + int end; +}; + +int main(void){ + int numbers; + struct tv_i tv[100]; + while(scanf("%d",&numbers) == 1 && numbers){ + int i, temp; + for(i = 0; i < numbers; i++) scanf("%d %d",&tv[i].start,&tv[i].end); + int if_change = 1; + while(if_change){ + if_change = 0; + for(i = 0; i < numbers-1; i++){ + if(tv[i].end > tv[i+1].end){ + temp = tv[i].end; + tv[i].end = tv[i+1].end; + tv[i+1].end = temp; + temp = tv[i].start; + tv[i].start = tv[i+1].start; + tv[i+1].start = temp; + if_change = 1; + } + } + } + int rtv = 0,nowt = 0; + for(i = 0; i < numbers; i++){ + if(tv[i].start >= nowt){ + rtv++; + nowt = tv[i].end; + + } + } + printf("%d\n",rtv); + } + return 0; +} diff --git a/3037/problem.build b/3037/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..278c4917af64aba620d8bcec59e70962c962dd85 GIT binary patch literal 8620 zcmeHMPiS047@yZ9ZM3Z~^-v; zVf!H4?aB(qdeNigkVDZ{dT1eumBgSZV#R|!2wJkBHxEIy>+d&jUh?*3>rL?RJ~A`k z@0)MF`Q|tC*q1lo{Q3LcJwg~wLgaS|Axsp}B7`kM)Wkz57K)UEy{GzL?|+%%s?bBqTw*#$%@KdR{5~uOUAMUy2ywHcI(4(i zd!dxs+*CBXW%9>63qlz0LG9sUcR;I-w_6*WcycU}noMM1^T(Ui@jA6Xu};;o?8q;c z&1I75(XIIP{C%Y3?brRpUa5*>M%kvDfA{Vn$uXHFHmNtsT`?96y{A|)qt8Q{k8wvGuDj(3Ipd$E+G6P{zT zBVL=%uT=*i_Ks&fo;z2hOhx`Jzjht3T@N7k#^ZY3GeVc`=j!ypi_iD>4Y_frhC%UGxnXXha+7+Kk#epdgqcD$KrAvp_FC9Pp;q{Ye_e4)U z{U~gpPKf>YtMY`4X@eZadO42IwO0taZuT+f=BIwaV{dHFjroUWvbn@~=d+#2BN>Gg zvGatm2Agta}Z{npIe8wu(QX z3;A?lSkYdDyA!prWE55S>ie}?ZPmVx9s@HJZcr2E`GY`?nW^}bDwUa3p=z95Gs}0F zSxiMMUHsyE&N0u#3M+;cTj_R8<~twna4VLV=&V*zScdbm9a*-FbBuZM5j6!P zsjZ-*x36^mYjRjr!5gOX0aC$HC^5uUj>HCc0~GBAfa=8G=q|O~;@ld>oCvIAry+Y#qm?`!^hFG@PAYabtbY8BiqzyTDKL2?os9S|A7~D z`<`y^;U1U+1_A~G1_A~G1_A~G1_A~G1_A~G1_A~G1_B2D#|#|kXdhyF2YMv0t|PH? zGB$Qjj!s1~aq)7dt)HoM4tDg6j!0yG}H~D`jBx@ zVdwjY`+Wp0RVBP<_u^h39`NBoALe|xNK|*AyU{{=_)W!Y58-xs=Q^ZXM;)t*n>vfb PvrCkwXb0nJS|R=c233}@ literal 0 HcmV?d00001 diff --git a/3037/problem.set b/3037/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/3037/stdin b/3037/stdin new file mode 100644 index 0000000..b4e3e6d --- /dev/null +++ b/3037/stdin @@ -0,0 +1,14 @@ +12 +1 3 +3 4 +0 7 +3 8 +15 19 +15 20 +10 15 +8 18 +6 12 +5 10 +4 14 +2 9 +0 diff --git a/3037/stdout b/3037/stdout new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/3037/stdout @@ -0,0 +1 @@ +5 diff --git a/3039/main.c b/3039/main.c new file mode 100644 index 0000000..afca06c --- /dev/null +++ b/3039/main.c @@ -0,0 +1,14 @@ +#include + +int main(void){ + int numbers; + scanf("%d",&numbers); + int i,count; + double a ,b ,c; + for(count = 0; count < numbers; count++){ + scanf("%lf %lf %lf",&a,&b,&c); + if(a < b + c && b < a + c && c < a + b) printf("YES\n"); + else printf("NO\n"); + } + return 0; +} diff --git a/3039/problem.build b/3039/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..8691fec3f490d456cc95c0b2ad3b5a60cc63796a GIT binary patch literal 8480 zcmeHM-)mGy6h3QW4bgfxFA}lRt#nJZkfZ|>aPyEp2y!W?$)neUu4 zXJ)>c3p;myfBF3XJtC1Vk?JlHaZr}KMea%rHIaiTNff274qb4+aYwGu+9{Dv_*%p~ z>j+e8%)LI=8KT=qJ8fbx#wNQ>VT4lU%v_l@Pr~`C`!N}~{xN=HOs6f~Qf&j~E0rth zQp*(1mj)rsx6efQ*l*Bd@_k?oUOqLQ$rUn1*uwb=Cf}zfo|wG1WXJd>O66iUf71kn z^F1*6`i-ABC>^=sP^yx@mCaA8Y<_B1yNB?^5UbN9)AL3gCx zH~Jr)FO@Sh1Lp=Xj%*r1kk3%qUm@o4chq3=W5qIH8L$jk1}p=X0n318;N557TC(;e zx$rEJte@Q-!BMkb*Ff8KMq&bZr7{U<<#|D{!BGg-g3k*ufI z5&r{BFPx~miAQSVg>yZ%KIIIo)!aXvMILDAgE^W)fblttgT}Gma%`}Xvv@#vaP~G7 za-W8(xxY2~JZsLgeypu)4Jg6*7FHrPcdIedY&K7UFsSOzQumI2FvWxz6E8L$jk z2Hryk`i?|LIPAUzFZ=XmxJu)G7?;;y7iCF`(Y}N#-~zflMbr;eni$U$coI>#m)xah zrd4JxGf^pLaQ8jV=AX=rXY&&0$B8bf9yZ~Ag=QzBZw~bb34UyG@BzrbzvuT2K>R%6 iJ!24m5yD + +int main(void){ + int numbers,count; + scanf("%d",&numbers); + for(count = 0; count < numbers; count++){ + long astp[40] = {1,2}; + int i, stairs; + scanf("%d",&stairs); + if(stairs < 2) printf("0\n"); + else{ + for(i = 2; i < stairs; i++) + astp[i] = astp[i-1] + astp[i-2]; + printf("%ld\n",astp[stairs-2]); + } + } + return 0; +} + diff --git a/4041/problem.build b/4041/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..2710ffafffe6cf4a7b80b57d01d603ecff22ca75 GIT binary patch literal 8668 zcmeHNU1(fI6rN2|4Q=YCFB(x{TU@C=B&mN?YG7BoctfM6HbN9+*uNx8cQ?!aU;{oR z#EZRd7gtdzq7qPOAAIOT3rVrE&|-oh7C{i{Q&HIkeU;)v*YBG>!+5$Th~C#b;X`jg}tOK=4EB6kXp>kQnmb#`MfmTAMEc5`S-80l=F+eZL%ZZ zF#2E_U?vLC?jcAQ$o{gy$r-rk})2F$fQjh1m-OYY?sFuy&&Ux*S~?w@HCzc7}?&x7Aj zJ%;|?-t+tJ0f?Xsp^Vik<*|G&HI`Y*XMiaWpl}|~uD?C`(ak5$ogKPQ^j*LC$-}S> zqlmq`Re8+Av_THyd)be_Yrk+Dem8xb^T6XjV>^Vl$Hw?4mMYb3Vf49C%p;dV5abaQ zj<+6h`FK=g@?*p>U>GnA7zPXjh5^ICf5E^jmh+3X@>?^6V_ak657k^cf4keY>bs_K z(6Q>mauT;T?Jr>C1TTp8`-s}KKi3AwJ`1g`@DZC`!;Pohbm!c3AH#O2wGjhyzL{#+ z7l1A2N)yeLvuQb(PD69PZjUm2Q@Np0U5A6GEvv4gt-1=u6v7Bty~4zOj{O#za6_GV z8xv2%gMc=AIrcI*b_6;|V!RK05+aW8xW!2Ao%jtQxJ}Z6Q>Ob>? znsWL>Cb1kB>X25*Q5id*b>VAFY^aRPzS>4_WW1;{Vop4QJNBD!b)aEfQn<XFs1BL;^fMLKeU>GnA7zPXj zh5^HXVc>tvz`g?`Go0SOnB>!SGJR5}7f#CgTC$uG$IHXb7$5D_Be_iB-58JB%Wd38 zC<*dwqPvV}^vN^}sYglFvP9ML#XC7mo1coLF$ + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.problem.build + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/4041/problem.build.dSYM/Contents/Resources/DWARF/problem.build b/4041/problem.build.dSYM/Contents/Resources/DWARF/problem.build new file mode 100644 index 0000000000000000000000000000000000000000..a11e38973c2a92f84e72f622b343efc72c67b496 GIT binary patch literal 9296 zcmeHN&2Jk;6rbJoY@Il`PJ-HofaHW!DKt1vYl*5vZ7d~_K%i9#=?90=+SxiT_S*99 zmP7;*!KFe-A%H5x0ea{WB#u=ND6)FsfW(0dm;435r8htV-kY6q*XuasfH=*I=IhOy z-@JM6t(E!s@sHpBIz)(O5JGw(L7m*fOwcft#~_{ir7)r2J-z$Y$;-_Te%N(&!6zv~ zVo;xf@+6c)kmeyVb}|3b+_kw&7oZU#Ez;hri8w!lAY)5&SC-l(_;{FaFGAI+NZ8Mq zXRmo!3n+@WnS{k-S4b&bPm5w?vsH%*W3J~H+!m_??{EOs*OF+1CUJphiv9qPt=g5k z-Qf7`>-|XJjfL>g_ATnrujqP>vQrWQQT@IZc<~lMd!-E!Mf`t`GG~1Z)_;Vi)`ptCSrZ zS>5oOLY|~$W$#kr)%}8FRc$wl*A)6e!Ks-Rl`cgH&s(o|;yo02<6`{71L9c?%PHAz z$9jjR0{hJfyrB_M=~77j#AnrkcU9nhFUDUzAf8nyH0+z5{untG=qCemWVDN7f-Uuf z9}~`r`eRGreJbR){uR%v*DE&T&V?~iywTHve)6Y!^l1UyrC=#aQDrsR$2bz3F8$h3n&XH3n&XH3n&XH3n&XH3n&XH3n&XH3n&ZxzZUoorqjt& zkZanX$;Tkq@E8D+MsU}j;kOrr^yqTOe}wA2@lR-CtJbPaA93sbLzuU(*C~ zr>QYb2h8{&Fg-eMKA^h!v9Wf=G?E$Jged?`o+lV7jrR6_L#g>PjhiK!h>y@zfRHeK zY682*+@^iNM&KAsXWlW55`aAsfKBifKt}Mc>{&?s@Byzj`LV<2P>}}_P$hVAgQp&W z{COxVHK&v=J097A29`+EkOHybidHWFL*D!7K%_3((c%FxVw@T07VX0uR!+}DF454? z`ZZvn9-7``$a5Ei0fWY4QV^%rmRB*SJJ_XfuT`;Sik9cMT4qx`YJfXB6s*64T|FoW zI!Vi;;@a~2nD_5Men{Wm;Ir@+F}8q5W6-G`Pl6|tsiVWmer*6Q&h;EIk_&_9ht4Km zNa*l7#25p{xkLgkhhrHSFksFcGm_XlK7?`rlq0%eEeyi#dxA^Bq_mAsNFHwq(~FDC zucmL>4Yyo#(o@+C{H0G6D{%Gt+*CH3%>XNx%ba>fhUnxQE(lMq`s?KaynUFQtrh*M z?Rf5_Rjf|tvbm`sC|aK8k>U8&0t_R?nh#EQJ*x~287d9i^>{GMzn-7RPr?vMzU)Ar z#@`WO83fDjna?(Ey!XY%?>}8IXMu;8^ed3i!zhE%iNyT~rM!RVUVt{nDw3QN#~?-L z{2NHhV313SbL>DGBjoOhvwS9u UJ!E500{iiace!G6#{IPV2RBq-y#N3J literal 0 HcmV?d00001 diff --git a/4041/problem.set b/4041/problem.set new file mode 100644 index 0000000..e69de29 diff --git a/4041/stdin b/4041/stdin new file mode 100644 index 0000000..b52e52d --- /dev/null +++ b/4041/stdin @@ -0,0 +1,3 @@ +2 +1 +3 diff --git a/4041/stdout b/4041/stdout new file mode 100644 index 0000000..a9772a0 --- /dev/null +++ b/4041/stdout @@ -0,0 +1,2 @@ +0 +2