├── Ad-Hoc ├── URI 1026.java ├── URI 1129.java ├── URI 1171.java ├── URI 1192.java ├── URI 1267.c ├── URI 1285.cpp ├── URI 1495.java ├── URI 1609.java ├── URI 1893.c ├── URI 1893.clj ├── URI 1893.cpp ├── URI 1893.cs ├── URI 1893.dart ├── URI 1893.go ├── URI 1893.hs ├── URI 1893.java ├── URI 1893.js ├── URI 1893.kt ├── URI 1893.lua ├── URI 1893.ml ├── URI 1893.pas ├── URI 1893.php ├── URI 1893.py ├── URI 1893.r ├── URI 1893.rb ├── URI 1893.scala ├── URI 2409.java ├── URI 2444.java ├── URI 2830.java ├── URI 2922.java ├── URI 2926.java ├── URI 2927.java ├── URI 2928.java └── URI 2936.java ├── Contest ├── 1ª Maratona UberHub Code Club - Contest Aberto │ ├── A.java │ ├── B.java │ ├── D.java │ ├── F.java │ ├── H.java │ ├── K.java │ ├── M.java │ └── N.java └── Contest de Natal 2018 │ ├── A.java │ ├── C.java │ └── E.java ├── Estruturas e Bibliotecas ├── URI 1068.java ├── URI 1215.java ├── URI 1281.java ├── URI 2018.java ├── URI 2482.java └── URI 3248.py ├── Geometria Computacional ├── URI 1039.pas └── URI 2840.pas ├── Iniciante ├── URI 1000.c ├── URI 1000.clj ├── URI 1000.cpp ├── URI 1000.cs ├── URI 1000.dart ├── URI 1000.go ├── URI 1000.hs ├── URI 1000.java ├── URI 1000.js ├── URI 1000.kt ├── URI 1000.lua ├── URI 1000.ml ├── URI 1000.pas ├── URI 1000.php ├── URI 1000.py ├── URI 1000.r ├── URI 1000.rb ├── URI 1000.scala ├── URI 1001.c ├── URI 1001.clj ├── URI 1001.cpp ├── URI 1001.cs ├── URI 1001.dart ├── URI 1001.go ├── URI 1001.hs ├── URI 1001.java ├── URI 1001.js ├── URI 1001.kt ├── URI 1001.lua ├── URI 1001.ml ├── URI 1001.pas ├── URI 1001.php ├── URI 1001.py ├── URI 1001.r ├── URI 1001.rb ├── URI 1001.scala ├── URI 1002.c ├── URI 1002.clj ├── URI 1002.cpp ├── URI 1002.cs ├── URI 1002.dart ├── URI 1002.go ├── URI 1002.hs ├── URI 1002.java ├── URI 1002.js ├── URI 1002.kt ├── URI 1002.lua ├── URI 1002.ml ├── URI 1002.pas ├── URI 1002.php ├── URI 1002.py ├── URI 1002.r ├── URI 1002.rb ├── URI 1002.scala ├── URI 1003.c ├── URI 1003.clj ├── URI 1003.cpp ├── URI 1003.cs ├── URI 1003.dart ├── URI 1003.go ├── URI 1003.hs ├── URI 1003.java ├── URI 1003.js ├── URI 1003.kt ├── URI 1003.lua ├── URI 1003.ml ├── URI 1003.pas ├── URI 1003.php ├── URI 1003.py ├── URI 1003.r ├── URI 1003.rb ├── URI 1003.scala ├── URI 1004.c ├── URI 1004.clj ├── URI 1004.cpp ├── URI 1004.cs ├── URI 1004.dart ├── URI 1004.go ├── URI 1004.hs ├── URI 1004.java ├── URI 1004.js ├── URI 1004.kt ├── URI 1004.lua ├── URI 1004.ml ├── URI 1004.pas ├── URI 1004.php ├── URI 1004.py ├── URI 1004.r ├── URI 1004.rb ├── URI 1004.scala ├── URI 1005.c ├── URI 1005.clj ├── URI 1005.cpp ├── URI 1005.cs ├── URI 1005.dart ├── URI 1005.go ├── URI 1005.hs ├── URI 1005.java ├── URI 1005.js ├── URI 1005.kt ├── URI 1005.lua ├── URI 1005.ml ├── URI 1005.pas ├── URI 1005.php ├── URI 1005.py ├── URI 1005.r ├── URI 1005.rb ├── URI 1005.scala ├── URI 1006.c ├── URI 1006.clj ├── URI 1006.cpp ├── URI 1006.cs ├── URI 1006.dart ├── URI 1006.go ├── URI 1006.hs ├── URI 1006.java ├── URI 1006.js ├── URI 1006.kt ├── URI 1006.lua ├── URI 1006.ml ├── URI 1006.pas ├── URI 1006.php ├── URI 1006.py ├── URI 1006.r ├── URI 1006.rb ├── URI 1006.scala ├── URI 1007.c ├── URI 1007.clj ├── URI 1007.cpp ├── URI 1007.cs ├── URI 1007.dart ├── URI 1007.go ├── URI 1007.hs ├── URI 1007.java ├── URI 1007.js ├── URI 1007.kt ├── URI 1007.lua ├── URI 1007.ml ├── URI 1007.pas ├── URI 1007.php ├── URI 1007.py ├── URI 1007.r ├── URI 1007.rb ├── URI 1007.scala ├── URI 1008.c ├── URI 1008.clj ├── URI 1008.cpp ├── URI 1008.cs ├── URI 1008.dart ├── URI 1008.go ├── URI 1008.hs ├── URI 1008.java ├── URI 1008.js ├── URI 1008.kt ├── URI 1008.lua ├── URI 1008.ml ├── URI 1008.pas ├── URI 1008.php ├── URI 1008.py ├── URI 1008.r ├── URI 1008.rb ├── URI 1008.scala ├── URI 1009.c ├── URI 1009.clj ├── URI 1009.cpp ├── URI 1009.cs ├── URI 1009.dart ├── URI 1009.go ├── URI 1009.hs ├── URI 1009.java ├── URI 1009.js ├── URI 1009.kt ├── URI 1009.lua ├── URI 1009.ml ├── URI 1009.pas ├── URI 1009.php ├── URI 1009.py ├── URI 1009.r ├── URI 1009.rb ├── URI 1009.scala ├── URI 1010.c ├── URI 1010.clj ├── URI 1010.cpp ├── URI 1010.cs ├── URI 1010.dart ├── URI 1010.go ├── URI 1010.hs ├── URI 1010.java ├── URI 1010.js ├── URI 1010.kt ├── URI 1010.lua ├── URI 1010.ml ├── URI 1010.pas ├── URI 1010.php ├── URI 1010.py ├── URI 1010.r ├── URI 1010.rb ├── URI 1010.scala ├── URI 1011.c ├── URI 1011.clj ├── URI 1011.cpp ├── URI 1011.cs ├── URI 1011.dart ├── URI 1011.go ├── URI 1011.hs ├── URI 1011.java ├── URI 1011.js ├── URI 1011.kt ├── URI 1011.lua ├── URI 1011.ml ├── URI 1011.pas ├── URI 1011.php ├── URI 1011.py ├── URI 1011.r ├── URI 1011.rb ├── URI 1011.scala ├── URI 1012.c ├── URI 1012.clj ├── URI 1012.cpp ├── URI 1012.cs ├── URI 1012.dart ├── URI 1012.go ├── URI 1012.hs ├── URI 1012.java ├── URI 1012.js ├── URI 1012.kt ├── URI 1012.lua ├── URI 1012.ml ├── URI 1012.pas ├── URI 1012.php ├── URI 1012.py ├── URI 1012.r ├── URI 1012.rb ├── URI 1012.scala ├── URI 1013.c ├── URI 1013.clj ├── URI 1013.cpp ├── URI 1013.cs ├── URI 1013.dart ├── URI 1013.go ├── URI 1013.hs ├── URI 1013.java ├── URI 1013.js ├── URI 1013.kt ├── URI 1013.lua ├── URI 1013.ml ├── URI 1013.pas ├── URI 1013.php ├── URI 1013.py ├── URI 1013.r ├── URI 1013.rb ├── URI 1013.scala ├── URI 1014.c ├── URI 1014.clj ├── URI 1014.cpp ├── URI 1014.cs ├── URI 1014.dart ├── URI 1014.go ├── URI 1014.hs ├── URI 1014.java ├── URI 1014.js ├── URI 1014.kt ├── URI 1014.lua ├── URI 1014.ml ├── URI 1014.pas ├── URI 1014.php ├── URI 1014.py ├── URI 1014.r ├── URI 1014.rb ├── URI 1014.scala ├── URI 1015.c ├── URI 1015.clj ├── URI 1015.cpp ├── URI 1015.cs ├── URI 1015.dart ├── URI 1015.go ├── URI 1015.hs ├── URI 1015.java ├── URI 1015.js ├── URI 1015.kt ├── URI 1015.lua ├── URI 1015.ml ├── URI 1015.pas ├── URI 1015.php ├── URI 1015.py ├── URI 1015.r ├── URI 1015.rb ├── URI 1015.scala ├── URI 1016.c ├── URI 1016.clj ├── URI 1016.cpp ├── URI 1016.cs ├── URI 1016.dart ├── URI 1016.go ├── URI 1016.hs ├── URI 1016.java ├── URI 1016.js ├── URI 1016.kt ├── URI 1016.lua ├── URI 1016.ml ├── URI 1016.pas ├── URI 1016.php ├── URI 1016.py ├── URI 1016.r ├── URI 1016.rb ├── URI 1016.scala ├── URI 1017.c ├── URI 1017.clj ├── URI 1017.cpp ├── URI 1017.cs ├── URI 1017.dart ├── URI 1017.go ├── URI 1017.hs ├── URI 1017.java ├── URI 1017.js ├── URI 1017.kt ├── URI 1017.lua ├── URI 1017.ml ├── URI 1017.pas ├── URI 1017.php ├── URI 1017.py ├── URI 1017.r ├── URI 1017.rb ├── URI 1017.scala ├── URI 1018.c ├── URI 1018.java ├── URI 1018.js ├── URI 1018.pas ├── URI 1019.c ├── URI 1019.java ├── URI 1019.js ├── URI 1019.pas ├── URI 1020.c ├── URI 1020.dart ├── URI 1020.java ├── URI 1020.js ├── URI 1020.pas ├── URI 1020.php ├── URI 1021.c ├── URI 1021.java ├── URI 1021.js ├── URI 1021.pas ├── URI 1035.c ├── URI 1035.clj ├── URI 1035.cpp ├── URI 1035.cs ├── URI 1035.dart ├── URI 1035.go ├── URI 1035.hs ├── URI 1035.java ├── URI 1035.js ├── URI 1035.kt ├── URI 1035.lua ├── URI 1035.ml ├── URI 1035.pas ├── URI 1035.php ├── URI 1035.py ├── URI 1035.r ├── URI 1035.rb ├── URI 1035.scala ├── URI 1036.c ├── URI 1036.java ├── URI 1036.js ├── URI 1036.pas ├── URI 1037.c ├── URI 1037.clj ├── URI 1037.cpp ├── URI 1037.cs ├── URI 1037.dart ├── URI 1037.go ├── URI 1037.hs ├── URI 1037.java ├── URI 1037.js ├── URI 1037.kt ├── URI 1037.lua ├── URI 1037.ml ├── URI 1037.pas ├── URI 1037.php ├── URI 1037.py ├── URI 1037.r ├── URI 1037.rb ├── URI 1037.scala ├── URI 1038.c ├── URI 1038.java ├── URI 1038.js ├── URI 1038.pas ├── URI 1040.c ├── URI 1040.java ├── URI 1040.js ├── URI 1040.pas ├── URI 1041.c ├── URI 1041.clj ├── URI 1041.cpp ├── URI 1041.cs ├── URI 1041.dart ├── URI 1041.go ├── URI 1041.hs ├── URI 1041.java ├── URI 1041.js ├── URI 1041.kt ├── URI 1041.lua ├── URI 1041.ml ├── URI 1041.pas ├── URI 1041.php ├── URI 1041.py ├── URI 1041.r ├── URI 1041.rb ├── URI 1041.scala ├── URI 1042.c ├── URI 1042.java ├── URI 1042.pas ├── URI 1043.c ├── URI 1043.java ├── URI 1043.js ├── URI 1044.c ├── URI 1044.clj ├── URI 1044.cpp ├── URI 1044.cs ├── URI 1044.dart ├── URI 1044.go ├── URI 1044.hs ├── URI 1044.java ├── URI 1044.js ├── URI 1044.kt ├── URI 1044.lua ├── URI 1044.ml ├── URI 1044.pas ├── URI 1044.php ├── URI 1044.py ├── URI 1044.r ├── URI 1044.rb ├── URI 1044.scala ├── URI 1045.java ├── URI 1046.c ├── URI 1046.clj ├── URI 1046.cpp ├── URI 1046.cs ├── URI 1046.dart ├── URI 1046.go ├── URI 1046.hs ├── URI 1046.java ├── URI 1046.js ├── URI 1046.kt ├── URI 1046.lua ├── URI 1046.ml ├── URI 1046.pas ├── URI 1046.php ├── URI 1046.py ├── URI 1046.r ├── URI 1046.rb ├── URI 1046.scala ├── URI 1047.java ├── URI 1047.js ├── URI 1047.pas ├── URI 1048.java ├── URI 1048.js ├── URI 1049.java ├── URI 1049.js ├── URI 1050.java ├── URI 1050.js ├── URI 1050.pas ├── URI 1051.c ├── URI 1051.clj ├── URI 1051.cpp ├── URI 1051.cs ├── URI 1051.dart ├── URI 1051.go ├── URI 1051.hs ├── URI 1051.java ├── URI 1051.js ├── URI 1051.kt ├── URI 1051.lua ├── URI 1051.ml ├── URI 1051.pas ├── URI 1051.php ├── URI 1051.py ├── URI 1051.r ├── URI 1051.rb ├── URI 1051.scala ├── URI 1052.cpp ├── URI 1052.java ├── URI 1052.js ├── URI 1059.c ├── URI 1059.clj ├── URI 1059.cpp ├── URI 1059.cs ├── URI 1059.dart ├── URI 1059.go ├── URI 1059.hs ├── URI 1059.java ├── URI 1059.js ├── URI 1059.kt ├── URI 1059.lua ├── URI 1059.ml ├── URI 1059.pas ├── URI 1059.php ├── URI 1059.py ├── URI 1059.r ├── URI 1059.rb ├── URI 1059.scala ├── URI 1060.java ├── URI 1060.js ├── URI 1061.java ├── URI 1064.java ├── URI 1064.js ├── URI 1065.java ├── URI 1065.js ├── URI 1066.java ├── URI 1066.js ├── URI 1067.java ├── URI 1067.js ├── URI 1070.java ├── URI 1070.js ├── URI 1071.java ├── URI 1072.java ├── URI 1072.js ├── URI 1073.java ├── URI 1073.js ├── URI 1074.java ├── URI 1074.js ├── URI 1075.java ├── URI 1075.js ├── URI 1075.php ├── URI 1075.r ├── URI 1078.c ├── URI 1078.clj ├── URI 1078.cpp ├── URI 1078.cs ├── URI 1078.dart ├── URI 1078.go ├── URI 1078.hs ├── URI 1078.java ├── URI 1078.js ├── URI 1078.kt ├── URI 1078.lua ├── URI 1078.ml ├── URI 1078.pas ├── URI 1078.php ├── URI 1078.py ├── URI 1078.r ├── URI 1078.rb ├── URI 1078.scala ├── URI 1079.java ├── URI 1080.java ├── URI 1094.java ├── URI 1095.c ├── URI 1095.clj ├── URI 1095.cpp ├── URI 1095.cs ├── URI 1095.dart ├── URI 1095.go ├── URI 1095.hs ├── URI 1095.java ├── URI 1095.js ├── URI 1095.kt ├── URI 1095.lua ├── URI 1095.ml ├── URI 1095.pas ├── URI 1095.php ├── URI 1095.py ├── URI 1095.r ├── URI 1095.rb ├── URI 1095.scala ├── URI 1096.c ├── URI 1096.clj ├── URI 1096.cpp ├── URI 1096.cs ├── URI 1096.dart ├── URI 1096.go ├── URI 1096.hs ├── URI 1096.java ├── URI 1096.js ├── URI 1096.kt ├── URI 1096.lua ├── URI 1096.ml ├── URI 1096.pas ├── URI 1096.php ├── URI 1096.py ├── URI 1096.r ├── URI 1096.rb ├── URI 1096.scala ├── URI 1097.c ├── URI 1097.clj ├── URI 1097.cpp ├── URI 1097.cs ├── URI 1097.dart ├── URI 1097.go ├── URI 1097.hs ├── URI 1097.java ├── URI 1097.js ├── URI 1097.kt ├── URI 1097.lua ├── URI 1097.ml ├── URI 1097.pas ├── URI 1097.php ├── URI 1097.py ├── URI 1097.r ├── URI 1097.rb ├── URI 1097.scala ├── URI 1098.c ├── URI 1098.clj ├── URI 1098.cpp ├── URI 1098.cs ├── URI 1098.dart ├── URI 1098.go ├── URI 1098.hs ├── URI 1098.java ├── URI 1098.js ├── URI 1098.kt ├── URI 1098.lua ├── URI 1098.ml ├── URI 1098.pas ├── URI 1098.php ├── URI 1098.py ├── URI 1098.r ├── URI 1098.rb ├── URI 1098.scala ├── URI 1099.java ├── URI 1101.java ├── URI 1113.java ├── URI 1113.js ├── URI 1114.java ├── URI 1114.js ├── URI 1115.java ├── URI 1116.java ├── URI 1116.js ├── URI 1117.java ├── URI 1118.java ├── URI 1131.java ├── URI 1132.java ├── URI 1133.java ├── URI 1134.java ├── URI 1142.java ├── URI 1143.java ├── URI 1143.pas ├── URI 1144.java ├── URI 1145.java ├── URI 1146.java ├── URI 1149.java ├── URI 1150.java ├── URI 1151.java ├── URI 1153.java ├── URI 1154.java ├── URI 1155.c ├── URI 1155.clj ├── URI 1155.cpp ├── URI 1155.cs ├── URI 1155.dart ├── URI 1155.go ├── URI 1155.hs ├── URI 1155.java ├── URI 1155.js ├── URI 1155.kt ├── URI 1155.lua ├── URI 1155.ml ├── URI 1155.pas ├── URI 1155.php ├── URI 1155.py ├── URI 1155.r ├── URI 1155.rb ├── URI 1155.scala ├── URI 1156.c ├── URI 1156.clj ├── URI 1156.cpp ├── URI 1156.cs ├── URI 1156.dart ├── URI 1156.go ├── URI 1156.hs ├── URI 1156.java ├── URI 1156.js ├── URI 1156.kt ├── URI 1156.lua ├── URI 1156.ml ├── URI 1156.pas ├── URI 1156.php ├── URI 1156.py ├── URI 1156.r ├── URI 1156.rb ├── URI 1156.scala ├── URI 1157.java ├── URI 1157.pas ├── URI 1158.java ├── URI 1158.pas ├── URI 1159.java ├── URI 1160.java ├── URI 1164.java ├── URI 1165.java ├── URI 1172.java ├── URI 1172.pas ├── URI 1173.java ├── URI 1173.pas ├── URI 1174.java ├── URI 1174.js ├── URI 1174.pas ├── URI 1175.java ├── URI 1175.pas ├── URI 1176.java ├── URI 1177.java ├── URI 1178.java ├── URI 1179.java ├── URI 1179.pas ├── URI 1180.java ├── URI 1181.java ├── URI 1181.pas ├── URI 1182.java ├── URI 1182.pas ├── URI 1183.java ├── URI 1183.pas ├── URI 1184.java ├── URI 1184.pas ├── URI 1185.java ├── URI 1185.pas ├── URI 1186.java ├── URI 1186.pas ├── URI 1187.java ├── URI 1187.pas ├── URI 1188.java ├── URI 1188.js ├── URI 1188.pas ├── URI 1189.java ├── URI 1189.pas ├── URI 1190.java ├── URI 1190.pas ├── URI 1435.java ├── URI 1478.java ├── URI 1534.java ├── URI 1541.java ├── URI 1557.java ├── URI 1564.java ├── URI 1564.js ├── URI 1589.java ├── URI 1759.java ├── URI 1759.js ├── URI 1789.java ├── URI 1827.java ├── URI 1828.java ├── URI 1837.java ├── URI 1847.java ├── URI 1848.java ├── URI 1858.java ├── URI 1864.java ├── URI 1864.js ├── URI 1865.java ├── URI 1866.java ├── URI 1914.java ├── URI 1921.c ├── URI 1921.clj ├── URI 1921.cpp ├── URI 1921.cs ├── URI 1921.dart ├── URI 1921.go ├── URI 1921.hs ├── URI 1921.java ├── URI 1921.js ├── URI 1921.kt ├── URI 1921.lua ├── URI 1921.ml ├── URI 1921.pas ├── URI 1921.php ├── URI 1921.py ├── URI 1921.r ├── URI 1921.rb ├── URI 1921.scala ├── URI 1924.c ├── URI 1924.clj ├── URI 1924.cpp ├── URI 1924.cs ├── URI 1924.dart ├── URI 1924.go ├── URI 1924.hs ├── URI 1924.java ├── URI 1924.js ├── URI 1924.kt ├── URI 1924.lua ├── URI 1924.ml ├── URI 1924.pas ├── URI 1924.php ├── URI 1924.py ├── URI 1924.r ├── URI 1924.rb ├── URI 1924.scala ├── URI 1929.java ├── URI 1930.c ├── URI 1930.clj ├── URI 1930.cpp ├── URI 1930.cs ├── URI 1930.dart ├── URI 1930.go ├── URI 1930.hs ├── URI 1930.java ├── URI 1930.js ├── URI 1930.kt ├── URI 1930.lua ├── URI 1930.ml ├── URI 1930.pas ├── URI 1930.php ├── URI 1930.py ├── URI 1930.r ├── URI 1930.rb ├── URI 1930.scala ├── URI 1933.java ├── URI 1957.java ├── URI 1958.java ├── URI 1959.c ├── URI 1959.clj ├── URI 1959.cpp ├── URI 1959.cs ├── URI 1959.dart ├── URI 1959.go ├── URI 1959.hs ├── URI 1959.java ├── URI 1959.js ├── URI 1959.kt ├── URI 1959.lua ├── URI 1959.ml ├── URI 1959.pas ├── URI 1959.php ├── URI 1959.py ├── URI 1959.r ├── URI 1959.rb ├── URI 1959.scala ├── URI 1960.java ├── URI 1961.java ├── URI 1962.java ├── URI 1963.c ├── URI 1963.clj ├── URI 1963.cpp ├── URI 1963.cs ├── URI 1963.dart ├── URI 1963.go ├── URI 1963.hs ├── URI 1963.java ├── URI 1963.js ├── URI 1963.kt ├── URI 1963.lua ├── URI 1963.ml ├── URI 1963.pas ├── URI 1963.php ├── URI 1963.py ├── URI 1963.r ├── URI 1963.rb ├── URI 1963.scala ├── URI 1973.java ├── URI 1983.java ├── URI 1984.java ├── URI 1985.java ├── URI 2003.java ├── URI 2006.java ├── URI 2028.java ├── URI 2029.java ├── URI 2031.java ├── URI 2057.java ├── URI 2059.java ├── URI 2060.java ├── URI 2061.java ├── URI 2126.java ├── URI 2139.java ├── URI 2140.java ├── URI 2143.java ├── URI 2146.java ├── URI 2147.java ├── URI 2152.java ├── URI 2159.java ├── URI 2160.R ├── URI 2160.clj ├── URI 2160.java ├── URI 2160.js ├── URI 2161.java ├── URI 2162.java ├── URI 2163.java ├── URI 2164.java ├── URI 2165.java ├── URI 2166.java ├── URI 2167.java ├── URI 2168.java ├── URI 2172.java ├── URI 2176.java ├── URI 2203.java ├── URI 2221.java ├── URI 2222.java ├── URI 2234.c ├── URI 2234.clj ├── URI 2234.cpp ├── URI 2234.cs ├── URI 2234.dart ├── URI 2234.go ├── URI 2234.hs ├── URI 2234.java ├── URI 2234.js ├── URI 2234.kt ├── URI 2234.lua ├── URI 2234.ml ├── URI 2234.pas ├── URI 2234.php ├── URI 2234.py ├── URI 2234.r ├── URI 2234.rb ├── URI 2234.scala ├── URI 2235.java ├── URI 2310.java ├── URI 2311.java ├── URI 2313.java ├── URI 2334.java ├── URI 2338.java ├── URI 2483.java ├── URI 2486.java ├── URI 2493.java ├── URI 2502.java ├── URI 2510.java ├── URI 2520.java ├── URI 2523.java ├── URI 2533.java ├── URI 2534.java ├── URI 2540.java ├── URI 2542.java ├── URI 2543.java ├── URI 2543.scala ├── URI 2544.java ├── URI 2547.java ├── URI 2551.java ├── URI 2552.java ├── URI 2554.java ├── URI 2581.java ├── URI 2582.java ├── URI 2626.java ├── URI 2630.java ├── URI 2631.java ├── URI 2633.java ├── URI 2653.java ├── URI 2663.java ├── URI 2670.java ├── URI 2674.java ├── URI 2685.java ├── URI 2685.scala ├── URI 2686.java ├── URI 2687.scala ├── URI 2690.java ├── URI 2690.scala ├── URI 2702.java ├── URI 2708.java ├── URI 2712.java ├── URI 2717.java ├── URI 2718.java ├── URI 2721.java ├── URI 2727.java ├── URI 2727.scala ├── URI 2747.c ├── URI 2747.clj ├── URI 2747.cpp ├── URI 2747.cs ├── URI 2747.dart ├── URI 2747.go ├── URI 2747.hs ├── URI 2747.java ├── URI 2747.js ├── URI 2747.kt ├── URI 2747.lua ├── URI 2747.ml ├── URI 2747.pas ├── URI 2747.php ├── URI 2747.py ├── URI 2747.r ├── URI 2747.rb ├── URI 2747.scala ├── URI 2748.c ├── URI 2748.clj ├── URI 2748.cpp ├── URI 2748.cs ├── URI 2748.dart ├── URI 2748.go ├── URI 2748.hs ├── URI 2748.java ├── URI 2748.js ├── URI 2748.kt ├── URI 2748.lua ├── URI 2748.ml ├── URI 2748.pas ├── URI 2748.php ├── URI 2748.py ├── URI 2748.r ├── URI 2748.rb ├── URI 2748.scala ├── URI 2749.c ├── URI 2749.clj ├── URI 2749.cpp ├── URI 2749.cs ├── URI 2749.dart ├── URI 2749.go ├── URI 2749.hs ├── URI 2749.java ├── URI 2749.js ├── URI 2749.kt ├── URI 2749.lua ├── URI 2749.ml ├── URI 2749.pas ├── URI 2749.php ├── URI 2749.py ├── URI 2749.r ├── URI 2749.rb ├── URI 2749.scala ├── URI 2750 #2.c ├── URI 2750.c ├── URI 2750.clj ├── URI 2750.cpp ├── URI 2750.cs ├── URI 2750.dart ├── URI 2750.go ├── URI 2750.hs ├── URI 2750.java ├── URI 2750.js ├── URI 2750.kt ├── URI 2750.lua ├── URI 2750.ml ├── URI 2750.pas ├── URI 2750.php ├── URI 2750.py ├── URI 2750.r ├── URI 2750.rb ├── URI 2750.scala ├── URI 2751.c ├── URI 2751.clj ├── URI 2751.cpp ├── URI 2751.cs ├── URI 2751.dart ├── URI 2751.go ├── URI 2751.hs ├── URI 2751.java ├── URI 2751.js ├── URI 2751.kt ├── URI 2751.lua ├── URI 2751.ml ├── URI 2751.pas ├── URI 2751.php ├── URI 2751.py ├── URI 2751.r ├── URI 2751.rb ├── URI 2751.scala ├── URI 2752.c ├── URI 2752.clj ├── URI 2752.cpp ├── URI 2752.cs ├── URI 2752.dart ├── URI 2752.go ├── URI 2752.hs ├── URI 2752.java ├── URI 2752.js ├── URI 2752.kt ├── URI 2752.lua ├── URI 2752.ml ├── URI 2752.pas ├── URI 2752.php ├── URI 2752.py ├── URI 2752.r ├── URI 2752.rb ├── URI 2752.scala ├── URI 2753.c ├── URI 2753.clj ├── URI 2753.cpp ├── URI 2753.cs ├── URI 2753.dart ├── URI 2753.go ├── URI 2753.hs ├── URI 2753.java ├── URI 2753.js ├── URI 2753.kt ├── URI 2753.lua ├── URI 2753.ml ├── URI 2753.pas ├── URI 2753.php ├── URI 2753.py ├── URI 2753.r ├── URI 2753.rb ├── URI 2753.scala ├── URI 2754.c ├── URI 2754.clj ├── URI 2754.cpp ├── URI 2754.cs ├── URI 2754.dart ├── URI 2754.go ├── URI 2754.hs ├── URI 2754.java ├── URI 2754.js ├── URI 2754.kt ├── URI 2754.lua ├── URI 2754.ml ├── URI 2754.pas ├── URI 2754.php ├── URI 2754.py ├── URI 2754.r ├── URI 2754.rb ├── URI 2754.scala ├── URI 2755.c ├── URI 2755.clj ├── URI 2755.cpp ├── URI 2755.cs ├── URI 2755.dart ├── URI 2755.go ├── URI 2755.hs ├── URI 2755.java ├── URI 2755.js ├── URI 2755.kt ├── URI 2755.lua ├── URI 2755.ml ├── URI 2755.pas ├── URI 2755.php ├── URI 2755.py ├── URI 2755.r ├── URI 2755.rb ├── URI 2755.scala ├── URI 2756.c ├── URI 2756.clj ├── URI 2756.cpp ├── URI 2756.cs ├── URI 2756.dart ├── URI 2756.go ├── URI 2756.hs ├── URI 2756.java ├── URI 2756.js ├── URI 2756.kt ├── URI 2756.lua ├── URI 2756.ml ├── URI 2756.pas ├── URI 2756.php ├── URI 2756.py ├── URI 2756.r ├── URI 2756.rb ├── URI 2756.scala ├── URI 2757.java ├── URI 2758.java ├── URI 2759.java ├── URI 2760.java ├── URI 2761.java ├── URI 2762.java ├── URI 2763.java ├── URI 2764.java ├── URI 2765.java ├── URI 2766.java ├── URI 2770.java ├── URI 2774.java ├── URI 2774.scala ├── URI 2779.java ├── URI 2780.java ├── URI 2783.java ├── URI 2786.c ├── URI 2786.clj ├── URI 2786.cpp ├── URI 2786.cs ├── URI 2786.dart ├── URI 2786.go ├── URI 2786.hs ├── URI 2786.java ├── URI 2786.js ├── URI 2786.kt ├── URI 2786.lua ├── URI 2786.ml ├── URI 2786.pas ├── URI 2786.php ├── URI 2786.py ├── URI 2786.r ├── URI 2786.rb ├── URI 2786.scala ├── URI 2787.java ├── URI 2791.java ├── URI 2802.c ├── URI 2802.clj ├── URI 2802.cpp ├── URI 2802.cs ├── URI 2802.dart ├── URI 2802.go ├── URI 2802.hs ├── URI 2802.java ├── URI 2802.js ├── URI 2802.kt ├── URI 2802.lua ├── URI 2802.ml ├── URI 2802.pas ├── URI 2802.php ├── URI 2802.py ├── URI 2802.r ├── URI 2802.rb ├── URI 2802.scala ├── URI 2807.java ├── URI 2808.java ├── URI 2812.java ├── URI 2813.java ├── URI 2813.scala ├── URI 2826.java ├── URI 2829.java ├── URI 2845.java ├── URI 2845.scala ├── URI 2846.java ├── URI 2846.scala ├── URI 2850.java ├── URI 2861.java ├── URI 2861.js ├── URI 2862.java ├── URI 2863.java ├── URI 2867.java ├── URI 2868.java ├── URI 2868.scala ├── URI 2879.java ├── URI 2896.java ├── URI 2930.c ├── URI 2930.clj ├── URI 2930.cpp ├── URI 2930.cs ├── URI 2930.dart ├── URI 2930.go ├── URI 2930.hs ├── URI 2930.java ├── URI 2930.js ├── URI 2930.kt ├── URI 2930.lua ├── URI 2930.ml ├── URI 2930.pas ├── URI 2930.php ├── URI 2930.py ├── URI 2930.r ├── URI 2930.rb ├── URI 2930.scala └── URI 3301.py ├── Matemática ├── URI 1161.java ├── URI 1170.pas ├── URI 1492.java ├── URI 2839.c ├── URI 2839.clj ├── URI 2839.cpp ├── URI 2839.cs ├── URI 2839.dart ├── URI 2839.go ├── URI 2839.hs ├── URI 2839.java ├── URI 2839.js ├── URI 2839.kt ├── URI 2839.lua ├── URI 2839.ml ├── URI 2839.pas ├── URI 2839.php ├── URI 2839.py ├── URI 2839.r ├── URI 2839.rb ├── URI 2839.scala └── URI 2890.java ├── README.md ├── Sql ├── URI 2602.sql ├── URI 2603.sql ├── URI 2604.sql ├── URI 2605.sql ├── URI 2606.sql ├── URI 2607.sql ├── URI 2608.sql ├── URI 2609.sql ├── URI 2610.sql ├── URI 2611.sql ├── URI 2612.sql ├── URI 2613.sql ├── URI 2614.sql ├── URI 2615.sql ├── URI 2616.sql ├── URI 2617.sql ├── URI 2618.sql ├── URI 2619.sql ├── URI 2620.sql ├── URI 2621.sql ├── URI 2622.sql ├── URI 2623.sql ├── URI 2624.sql ├── URI 2625.sql ├── URI 2737.sql ├── URI 2738.sql ├── URI 2739.sql ├── URI 2740.sql ├── URI 2741.sql ├── URI 2742.sql ├── URI 2743.sql ├── URI 2744.sql ├── URI 2745.sql ├── URI 2746.sql ├── URI 2988.sql ├── URI 2990.sql ├── URI 2993.sql ├── URI 2994.sql ├── URI 3001.sql ├── URI 3480.sql ├── URI 3481.sql ├── URI 3482.sql └── URI 3483.sql └── Strings ├── URI 1024.c ├── URI 1024.java ├── URI 1120.cpp ├── URI 1120.java ├── URI 1168.java ├── URI 1222.java ├── URI 1234.java ├── URI 1235.java ├── URI 1238.java ├── URI 1239.java ├── URI 1241.java ├── URI 1243.java ├── URI 1248.java ├── URI 1272.java ├── URI 1367.java ├── URI 1898.java ├── URI 2062.java └── URI 2432.c /Ad-Hoc/URI 1026.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Ad-Hoc/URI 1026.java -------------------------------------------------------------------------------- /Ad-Hoc/URI 1129.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Ad-Hoc/URI 1129.java -------------------------------------------------------------------------------- /Ad-Hoc/URI 1171.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Ad-Hoc/URI 1171.java -------------------------------------------------------------------------------- /Ad-Hoc/URI 1192.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Ad-Hoc/URI 1192.java -------------------------------------------------------------------------------- /Ad-Hoc/URI 1495.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Ad-Hoc/URI 1495.java -------------------------------------------------------------------------------- /Ad-Hoc/URI 1609.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Ad-Hoc/URI 1609.java -------------------------------------------------------------------------------- /Ad-Hoc/URI 1893.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Ad-Hoc/URI 1893.java -------------------------------------------------------------------------------- /Ad-Hoc/URI 1893.rb: -------------------------------------------------------------------------------- 1 | line = gets.split(' ') 2 | inicio = line[0].to_i 3 | final = line[1].to_i 4 | 5 | if inicio >= 0 && final <= 2 6 | puts "nova" 7 | elsif final > inicio && final <= 96 8 | puts "crescente" 9 | elsif inicio >= final && final <= 96 10 | puts "minguante" 11 | else 12 | puts "cheia" 13 | end -------------------------------------------------------------------------------- /Ad-Hoc/URI 2409.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Ad-Hoc/URI 2409.java -------------------------------------------------------------------------------- /Ad-Hoc/URI 2444.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Ad-Hoc/URI 2444.java -------------------------------------------------------------------------------- /Ad-Hoc/URI 2830.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Ad-Hoc/URI 2830.java -------------------------------------------------------------------------------- /Ad-Hoc/URI 2922.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Ad-Hoc/URI 2922.java -------------------------------------------------------------------------------- /Ad-Hoc/URI 2926.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Ad-Hoc/URI 2926.java -------------------------------------------------------------------------------- /Ad-Hoc/URI 2927.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Ad-Hoc/URI 2927.java -------------------------------------------------------------------------------- /Ad-Hoc/URI 2928.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Ad-Hoc/URI 2928.java -------------------------------------------------------------------------------- /Ad-Hoc/URI 2936.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Ad-Hoc/URI 2936.java -------------------------------------------------------------------------------- /Estruturas e Bibliotecas/URI 1281.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Estruturas e Bibliotecas/URI 1281.java -------------------------------------------------------------------------------- /Estruturas e Bibliotecas/URI 2018.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Estruturas e Bibliotecas/URI 2018.java -------------------------------------------------------------------------------- /Estruturas e Bibliotecas/URI 2482.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Estruturas e Bibliotecas/URI 2482.java -------------------------------------------------------------------------------- /Geometria Computacional/URI 2840.pas: -------------------------------------------------------------------------------- 1 | program uri_2840; 2 | 3 | var r,gas,total: longint; 4 | volume : double; 5 | BEGIN 6 | readln(r,gas); 7 | volume:= (4*3.1415*((r*r)*r)/3); 8 | total:= trunc(gas/volume); 9 | writeln(total); 10 | 11 | END. 12 | 13 | -------------------------------------------------------------------------------- /Iniciante/URI 1000.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | printf("Hello World!\n"); 5 | return 0; 6 | } -------------------------------------------------------------------------------- /Iniciante/URI 1000.clj: -------------------------------------------------------------------------------- 1 | (println "Hello World!") -------------------------------------------------------------------------------- /Iniciante/URI 1000.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | printf("Hello World!\n"); 5 | return 0; 6 | } -------------------------------------------------------------------------------- /Iniciante/URI 1000.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | class URI { 4 | 5 | static void Main(string[] args) { 6 | Console.WriteLine("Hello World!"); 7 | } 8 | 9 | } -------------------------------------------------------------------------------- /Iniciante/URI 1000.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | void main() { 4 | print("Hello World!"); 5 | } -------------------------------------------------------------------------------- /Iniciante/URI 1000.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func main() { 8 | fmt.Println("Hello World!") 9 | } 10 | -------------------------------------------------------------------------------- /Iniciante/URI 1000.hs: -------------------------------------------------------------------------------- 1 | main :: IO () 2 | main = do 3 | putStrLn $ "Hello World!" -------------------------------------------------------------------------------- /Iniciante/URI 1000.java: -------------------------------------------------------------------------------- 1 | public class Main { 2 | 3 | public static void main(String[] args) { 4 | System.out.println("Hello World!"); 5 | } 6 | 7 | } -------------------------------------------------------------------------------- /Iniciante/URI 1000.js: -------------------------------------------------------------------------------- 1 | console.log('Hello World!'); -------------------------------------------------------------------------------- /Iniciante/URI 1000.kt: -------------------------------------------------------------------------------- 1 | fun main(args: Array) { 2 | println("Hello World!"); 3 | } -------------------------------------------------------------------------------- /Iniciante/URI 1000.lua: -------------------------------------------------------------------------------- 1 | print('Hello World!') -------------------------------------------------------------------------------- /Iniciante/URI 1000.ml: -------------------------------------------------------------------------------- 1 | Printf.printf "Hello World!\n"; -------------------------------------------------------------------------------- /Iniciante/URI 1000.pas: -------------------------------------------------------------------------------- 1 | begin 2 | writeln('Hello World!'); 3 | end. -------------------------------------------------------------------------------- /Iniciante/URI 1000.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1000.py: -------------------------------------------------------------------------------- 1 | print('Hello World!') -------------------------------------------------------------------------------- /Iniciante/URI 1000.r: -------------------------------------------------------------------------------- 1 | write("Hello World", "") -------------------------------------------------------------------------------- /Iniciante/URI 1000.rb: -------------------------------------------------------------------------------- 1 | puts "Hello World!" -------------------------------------------------------------------------------- /Iniciante/URI 1000.scala: -------------------------------------------------------------------------------- 1 | object Main { 2 | 3 | def main(args: Array[String]) { 4 | println("Hello World!") 5 | } 6 | 7 | } -------------------------------------------------------------------------------- /Iniciante/URI 1001.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a, b, x; 5 | 6 | scanf("%d %d", &a, &b); 7 | x = a + b; 8 | printf("X = %d\n", x); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1001.clj: -------------------------------------------------------------------------------- 1 | (def a (read-string (read-line))) 2 | (def b (read-string (read-line))) 3 | 4 | (println "X =" (+ a b)) -------------------------------------------------------------------------------- /Iniciante/URI 1001.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a, b, x; 5 | 6 | scanf("%d %d", &a, &b); 7 | x = a + b; 8 | printf("X = %d\n", x); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1001.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | class URI { 4 | 5 | static void Main(string[] args) { 6 | int A = int.Parse(Console.ReadLine()); 7 | int B = int.Parse(Console.ReadLine()); 8 | int X = A + B; 9 | Console.WriteLine("X = {0}", X); 10 | } 11 | 12 | } -------------------------------------------------------------------------------- /Iniciante/URI 1001.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | void main() { 4 | int a = int.parse(stdin.readLineSync()); 5 | int b = int.parse(stdin.readLineSync()); 6 | int x = a + b; 7 | print("X = $x"); 8 | } -------------------------------------------------------------------------------- /Iniciante/URI 1001.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func main() { 8 | var a, b, x int 9 | 10 | fmt.Scanf("%d", &a) 11 | fmt.Scanf("%d", &b) 12 | x = a + b 13 | fmt.Printf("X = %d\n", x) 14 | } -------------------------------------------------------------------------------- /Iniciante/URI 1001.hs: -------------------------------------------------------------------------------- 1 | main :: IO () 2 | main = do 3 | a' <- getLine 4 | b' <- getLine 5 | let a = read a' :: Int 6 | let b = read b' :: Int 7 | let x = a + b :: Int 8 | putStrLn $ "X = " ++ show x -------------------------------------------------------------------------------- /Iniciante/URI 1001.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1001.java -------------------------------------------------------------------------------- /Iniciante/URI 1001.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var a = parseInt(lines.shift()); 5 | var b = parseInt(lines.shift()); 6 | var x = a + b; 7 | 8 | console.log('X = ' + x); -------------------------------------------------------------------------------- /Iniciante/URI 1001.kt: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | fun main(args: Array) { 4 | val leitor = Scanner(System.`in`); 5 | 6 | val a: Int = leitor.nextInt(); 7 | val b: Int = leitor.nextInt(); 8 | val x: Int = a + b; 9 | 10 | println("X = " + x); 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1001.lua: -------------------------------------------------------------------------------- 1 | a = tonumber(io.read()) 2 | b = tonumber(io.read()) 3 | x = a + b 4 | print('X = ' .. x) -------------------------------------------------------------------------------- /Iniciante/URI 1001.ml: -------------------------------------------------------------------------------- 1 | let a = read_int();; 2 | let b = read_int();; 3 | let x = a + b;; 4 | Printf.printf "X = %d\n" (x); -------------------------------------------------------------------------------- /Iniciante/URI 1001.pas: -------------------------------------------------------------------------------- 1 | var 2 | a : int64; 3 | b : int64; 4 | x : int64; 5 | 6 | begin 7 | read(a); 8 | read(b); 9 | 10 | x := a + b; 11 | 12 | writeln('X = ', x); 13 | end. -------------------------------------------------------------------------------- /Iniciante/URI 1001.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1001.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | a = as.integer(readLines(input, n=1)) 4 | b = as.integer(readLines(input, n=1)) 5 | x = a + b 6 | 7 | write(paste("X =", x), '') -------------------------------------------------------------------------------- /Iniciante/URI 1001.rb: -------------------------------------------------------------------------------- 1 | a = gets.to_i 2 | b = gets.to_i 3 | x = a + b 4 | puts "X = #{x}" -------------------------------------------------------------------------------- /Iniciante/URI 1002.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | double raio, area; 5 | 6 | scanf("%lf", &raio); 7 | area = 3.14159 * (raio * raio); 8 | printf("A=%.4lf\n", area); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1002.clj: -------------------------------------------------------------------------------- 1 | (def raio (read-string (read-line))) 2 | (def area (* 3.14159 (* raio raio))) 3 | 4 | (printf "A=%.4f\n" area) -------------------------------------------------------------------------------- /Iniciante/URI 1002.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | double raio, area; 5 | 6 | scanf("%lf", &raio); 7 | area = 3.14159 * (raio * raio); 8 | printf("A=%.4lf\n", area); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1002.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | class URI { 4 | 5 | static void Main(string[] args) { 6 | double raio = double.Parse(Console.ReadLine()); 7 | double area = 3.14159 * (raio * raio); 8 | Console.WriteLine("A={0:F4}", area); 9 | } 10 | 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1002.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | void main() { 4 | double raio = double.parse(stdin.readLineSync()); 5 | double area = 3.14159 * (raio * raio); 6 | print("A=" + area.toStringAsFixed(4)); 7 | } -------------------------------------------------------------------------------- /Iniciante/URI 1002.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func main() { 8 | var raio, area float64 9 | 10 | fmt.Scanf("%f", &raio) 11 | area = 3.14159 * (raio * raio) 12 | fmt.Printf("A=%.4f\n", area) 13 | } -------------------------------------------------------------------------------- /Iniciante/URI 1002.hs: -------------------------------------------------------------------------------- 1 | import Text.Printf 2 | 3 | main :: IO () 4 | main = do 5 | raio' <- getLine 6 | 7 | let n = 3.14159 8 | let raio = read raio' :: Double 9 | let area = (n * raio * raio) 10 | 11 | putStrLn $ printf "A=%.4f" area -------------------------------------------------------------------------------- /Iniciante/URI 1002.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1002.java -------------------------------------------------------------------------------- /Iniciante/URI 1002.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var n = 3.14159; 5 | var raio = parseFloat(lines.shift()); 6 | var area = n * (raio * raio); 7 | 8 | console.log('A=' + area.toFixed(4)); -------------------------------------------------------------------------------- /Iniciante/URI 1002.kt: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | fun main(args: Array) { 4 | val leitor = Scanner(System.`in`); 5 | 6 | val raio: Double = leitor.nextDouble(); 7 | val area: Double = 3.14159 * (raio * raio); 8 | 9 | println(String.format("A=%.4f", area)); 10 | } -------------------------------------------------------------------------------- /Iniciante/URI 1002.lua: -------------------------------------------------------------------------------- 1 | raio = tonumber(io.read()) 2 | area = 3.14159 * (raio * raio) 3 | print(string.format('A=%.4f', area)) -------------------------------------------------------------------------------- /Iniciante/URI 1002.ml: -------------------------------------------------------------------------------- 1 | let raio = read_float();; 2 | let area = 3.14159 *. raio *. raio;; 3 | Printf.printf "A=%.4f\n" (area); -------------------------------------------------------------------------------- /Iniciante/URI 1002.pas: -------------------------------------------------------------------------------- 1 | var 2 | raio : double; 3 | area : double; 4 | 5 | begin 6 | read(raio); 7 | 8 | area := 3.14159 * (raio * raio); 9 | 10 | writeln('A=', area:0:4); 11 | end. -------------------------------------------------------------------------------- /Iniciante/URI 1002.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1002.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | raio = as.double(readLines(input, n=1)) 4 | area = 3.14159 * (raio * raio); 5 | 6 | write(sprintf("A=%.4f", area), '') -------------------------------------------------------------------------------- /Iniciante/URI 1002.rb: -------------------------------------------------------------------------------- 1 | raio = gets.to_f 2 | area = 3.14159 * (raio * raio) 3 | puts "A=%0.4f" % [area] -------------------------------------------------------------------------------- /Iniciante/URI 1003.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a, b, soma; 5 | 6 | scanf("%d %d", &a, &b); 7 | soma = a + b; 8 | printf("SOMA = %d\n", soma); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1003.clj: -------------------------------------------------------------------------------- 1 | (def a (read-string (read-line))) 2 | (def b (read-string (read-line))) 3 | (def soma (+ a b)) 4 | 5 | (printf "SOMA = %d\n" soma) -------------------------------------------------------------------------------- /Iniciante/URI 1003.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a, b, soma; 5 | 6 | scanf("%d %d", &a, &b); 7 | soma = a + b; 8 | printf("SOMA = %d\n", soma); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1003.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | class URI { 4 | 5 | static void Main(string[] args) { 6 | int A = int.Parse(Console.ReadLine()); 7 | int B = int.Parse(Console.ReadLine()); 8 | int X = A + B; 9 | Console.Write("SOMA = {0}\n", X); 10 | } 11 | 12 | } -------------------------------------------------------------------------------- /Iniciante/URI 1003.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | void main() { 4 | int a = int.parse(stdin.readLineSync()); 5 | int b = int.parse(stdin.readLineSync()); 6 | int soma = a + b; 7 | print("SOMA = $soma"); 8 | } 9 | -------------------------------------------------------------------------------- /Iniciante/URI 1003.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func main() { 8 | var a, b, soma int 9 | 10 | fmt.Scanf("%d", &a) 11 | fmt.Scanf("%d", &b) 12 | soma = a + b 13 | fmt.Printf("SOMA = %d\n", soma) 14 | } -------------------------------------------------------------------------------- /Iniciante/URI 1003.hs: -------------------------------------------------------------------------------- 1 | main :: IO () 2 | main = do 3 | a' <- getLine 4 | b' <- getLine 5 | 6 | let a = read a' :: Int 7 | let b = read b' :: Int 8 | let soma = a + b :: Int 9 | 10 | putStrLn $ "SOMA = " ++ show soma -------------------------------------------------------------------------------- /Iniciante/URI 1003.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1003.java -------------------------------------------------------------------------------- /Iniciante/URI 1003.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var a = parseInt(lines.shift()); 5 | var b = parseInt(lines.shift()); 6 | var soma = a + b; 7 | 8 | console.log('SOMA = ' + soma); -------------------------------------------------------------------------------- /Iniciante/URI 1003.kt: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | fun main(args: Array) { 4 | val leitor = Scanner(System.`in`); 5 | 6 | val a: Int = leitor.nextInt(); 7 | val b: Int = leitor.nextInt(); 8 | val soma: Int = a + b; 9 | 10 | println("SOMA = " + soma); 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1003.lua: -------------------------------------------------------------------------------- 1 | X = tonumber(io.read()) 2 | Y = tonumber(io.read()) 3 | SOMA = X + Y 4 | print('SOMA = ' .. SOMA) -------------------------------------------------------------------------------- /Iniciante/URI 1003.ml: -------------------------------------------------------------------------------- 1 | let a = read_int();; 2 | let b = read_int();; 3 | let soma = a + b;; 4 | Printf.printf "SOMA = %d\n" (soma); -------------------------------------------------------------------------------- /Iniciante/URI 1003.pas: -------------------------------------------------------------------------------- 1 | var 2 | a : int64; 3 | b : int64; 4 | soma : int64; 5 | 6 | begin 7 | read(a); 8 | read(b); 9 | 10 | soma := a + b; 11 | 12 | writeln('SOMA = ', soma); 13 | end. -------------------------------------------------------------------------------- /Iniciante/URI 1003.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1003.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | a = as.integer(readLines(input, n=1)) 4 | b = as.integer(readLines(input, n=1)) 5 | soma = a + b 6 | 7 | write(sprintf("SOMA = %d", soma), '') -------------------------------------------------------------------------------- /Iniciante/URI 1003.rb: -------------------------------------------------------------------------------- 1 | a = gets.to_i 2 | b = gets.to_i 3 | soma = a + b 4 | puts "SOMA = #{soma}" -------------------------------------------------------------------------------- /Iniciante/URI 1004.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a, b, prod; 5 | 6 | scanf("%d %d", &a, &b); 7 | prod = a * b; 8 | printf("PROD = %d\n", prod); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1004.clj: -------------------------------------------------------------------------------- 1 | (def a (read-string (read-line))) 2 | (def b (read-string (read-line))) 3 | (def prod (* a b)) 4 | 5 | (printf "PROD = %d\n" prod) -------------------------------------------------------------------------------- /Iniciante/URI 1004.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a, b, prod; 5 | 6 | scanf("%d %d", &a, &b); 7 | prod = a * b; 8 | printf("PROD = %d\n", prod); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1004.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | class URI { 4 | 5 | static void Main(string[] args) { 6 | int a = int.Parse(Console.ReadLine()); 7 | int b = int.Parse(Console.ReadLine()); 8 | int prod = a * b; 9 | Console.WriteLine("PROD = " + prod); 10 | } 11 | 12 | } -------------------------------------------------------------------------------- /Iniciante/URI 1004.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | void main() { 4 | int a = int.parse(stdin.readLineSync()); 5 | int b = int.parse(stdin.readLineSync()); 6 | int prod = a * b; 7 | print("PROD = $prod"); 8 | } -------------------------------------------------------------------------------- /Iniciante/URI 1004.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func main() { 8 | var a, b, prod int 9 | 10 | fmt.Scanf("%d", &a) 11 | fmt.Scanf("%d", &b) 12 | prod = a * b 13 | fmt.Printf("PROD = %d\n", prod) 14 | } -------------------------------------------------------------------------------- /Iniciante/URI 1004.hs: -------------------------------------------------------------------------------- 1 | main :: IO () 2 | main = do 3 | a' <- getLine 4 | b' <- getLine 5 | 6 | let a = read a' :: Int 7 | let b = read b' :: Int 8 | let prod = a * b 9 | 10 | putStrLn $ "PROD = " ++ show prod -------------------------------------------------------------------------------- /Iniciante/URI 1004.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1004.java -------------------------------------------------------------------------------- /Iniciante/URI 1004.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var a = parseInt(lines.shift()); 5 | var b = parseInt(lines.shift()); 6 | var prod = a * b; 7 | 8 | console.log('PROD = ' + prod); -------------------------------------------------------------------------------- /Iniciante/URI 1004.kt: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | fun main(args: Array) { 4 | val leitor = Scanner(System.`in`); 5 | 6 | val a: Int = leitor.nextInt(); 7 | val b: Int = leitor.nextInt(); 8 | val prod: Int = a * b; 9 | 10 | println("PROD = " + prod); 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1004.lua: -------------------------------------------------------------------------------- 1 | X = tonumber(io.read()) 2 | Y = tonumber(io.read()) 3 | prod = X * Y 4 | print('PROD = ' .. prod) -------------------------------------------------------------------------------- /Iniciante/URI 1004.ml: -------------------------------------------------------------------------------- 1 | let a = read_int();; 2 | let b = read_int();; 3 | let soma = a * b;; 4 | Printf.printf "PROD = %d\n" (soma); -------------------------------------------------------------------------------- /Iniciante/URI 1004.pas: -------------------------------------------------------------------------------- 1 | var 2 | a : int64; 3 | b : int64; 4 | prod : int64; 5 | 6 | begin 7 | read(a); 8 | read(b); 9 | 10 | prod := a * b; 11 | 12 | writeln('PROD = ', prod); 13 | end. -------------------------------------------------------------------------------- /Iniciante/URI 1004.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1004.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | x = as.integer(readLines(input, n=1)) 4 | y = as.integer(readLines(input, n=1)) 5 | prod = x * y 6 | 7 | write(sprintf("PROD = %d", prod), '') -------------------------------------------------------------------------------- /Iniciante/URI 1004.rb: -------------------------------------------------------------------------------- 1 | a = gets.to_i 2 | b = gets.to_i 3 | prod = a * b 4 | puts "PROD = #{prod}" -------------------------------------------------------------------------------- /Iniciante/URI 1005.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | float a, b, media; 5 | 6 | scanf("%f %f", &a, &b); 7 | media = ((3.5 * a) + (7.5 * b)) / 11; 8 | printf("MEDIA = %.5f\n", media); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1005.clj: -------------------------------------------------------------------------------- 1 | (def a (read-string (read-line))) 2 | (def b (read-string (read-line))) 3 | (def media (/ (+ (* 3.5 a) (* 7.5 b)) 11.0)) 4 | 5 | (printf "MEDIA = %.5f\n" media) -------------------------------------------------------------------------------- /Iniciante/URI 1005.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | float a, b, media; 5 | 6 | scanf("%f %f", &a, &b); 7 | media = ((3.5 * a) + (7.5 * b)) / 11; 8 | printf("MEDIA = %.5f\n", media); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1005.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | void main() { 4 | double a = double.parse(stdin.readLineSync()); 5 | double b = double.parse(stdin.readLineSync()); 6 | double media = ((3.5 * a) + (7.5 * b)) / 11; 7 | print("MEDIA = ${media.toStringAsFixed(5)}"); 8 | } -------------------------------------------------------------------------------- /Iniciante/URI 1005.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func main() { 8 | var a, b, media float64 9 | 10 | fmt.Scanf("%f", &a) 11 | fmt.Scanf("%f", &b) 12 | media = ((3.5 * a) + (7.5 * b)) / 11 13 | fmt.Printf("MEDIA = %.5f\n", media) 14 | } -------------------------------------------------------------------------------- /Iniciante/URI 1005.hs: -------------------------------------------------------------------------------- 1 | import Text.Printf 2 | 3 | main :: IO () 4 | main = do 5 | a' <- getLine 6 | b' <- getLine 7 | 8 | let a = read a' :: Double 9 | let b = read b' :: Double 10 | let media = ((3.5 * a) + (7.5 * b)) / 11 11 | 12 | putStrLn $ printf "MEDIA = %.5f" media -------------------------------------------------------------------------------- /Iniciante/URI 1005.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1005.java -------------------------------------------------------------------------------- /Iniciante/URI 1005.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var a = parseFloat(lines.shift()); 5 | var b = parseFloat(lines.shift()); 6 | var media = ((3.5 * a) + (7.5 * b)) / 11; 7 | 8 | console.log('MEDIA = ' + media.toFixed(5)); -------------------------------------------------------------------------------- /Iniciante/URI 1005.lua: -------------------------------------------------------------------------------- 1 | a = tonumber(io.read()) 2 | b = tonumber(io.read()) 3 | media = ((3.5 * a) + (7.5 * b)) / 11 4 | print(string.format('MEDIA = %.5f', media)) -------------------------------------------------------------------------------- /Iniciante/URI 1005.ml: -------------------------------------------------------------------------------- 1 | let a = read_float();; 2 | let b = read_float();; 3 | let media = ((3.5 *. a) +. (7.5 *. b)) /. 11.0;; 4 | Printf.printf "MEDIA = %.5f\n" (media); -------------------------------------------------------------------------------- /Iniciante/URI 1005.pas: -------------------------------------------------------------------------------- 1 | var 2 | a : double; 3 | b : double; 4 | media: double; 5 | 6 | begin 7 | read(a); 8 | read(b); 9 | 10 | media := ((3.5 * a) + (7.5 * b)) / 11; 11 | 12 | writeln('MEDIA = ', media:0:5); 13 | end. -------------------------------------------------------------------------------- /Iniciante/URI 1005.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1005.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | a = as.double(readLines(input, n=1)) * 3.5 4 | b = as.double(readLines(input, n=1)) * 7.5 5 | media = (a + b) / 11 6 | 7 | write(sprintf("MEDIA = %.5f", media), '') -------------------------------------------------------------------------------- /Iniciante/URI 1005.rb: -------------------------------------------------------------------------------- 1 | a = gets.to_f 2 | b = gets.to_f 3 | media = ((3.5 * a) + (7.5 * b)) / 11 4 | puts "MEDIA = %.5f" % [media] -------------------------------------------------------------------------------- /Iniciante/URI 1006.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | float a, b, c, media; 5 | 6 | scanf("%f %f %f", &a, &b, &c); 7 | media = ((a * 2) + (b * 3) + (c * 5)) / 10; 8 | printf("MEDIA = %.1f\n", media); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1006.clj: -------------------------------------------------------------------------------- 1 | (def a (read-string (read-line))) 2 | (def b (read-string (read-line))) 3 | (def c (read-string (read-line))) 4 | (def media (/ (+ (* a 2) (* b 3) (* c 5)) 10)) 5 | 6 | (printf "MEDIA = %.1f\n" media) -------------------------------------------------------------------------------- /Iniciante/URI 1006.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | float a, b, c, media; 5 | 6 | scanf("%f %f %f", &a, &b, &c); 7 | media = ((a * 2) + (b * 3) + (c * 5)) / 10; 8 | printf("MEDIA = %.1f\n", media); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1006.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1006.java -------------------------------------------------------------------------------- /Iniciante/URI 1006.lua: -------------------------------------------------------------------------------- 1 | a = tonumber(io.read()) 2 | b = tonumber(io.read()) 3 | c = tonumber(io.read()) 4 | media = ((a * 2) + (b * 3) + (c * 5)) / 10 5 | print(string.format('MEDIA = %.1f', media)) -------------------------------------------------------------------------------- /Iniciante/URI 1006.ml: -------------------------------------------------------------------------------- 1 | let a = read_float();; 2 | let b = read_float();; 3 | let c = read_float();; 4 | let media = ((a *. 2.0) +. (b *. 3.0) +. (c *. 5.0)) /. 10.0;; 5 | Printf.printf "MEDIA = %.1f\n" (media); -------------------------------------------------------------------------------- /Iniciante/URI 1006.pas: -------------------------------------------------------------------------------- 1 | var 2 | a : double; 3 | b : double; 4 | c : double; 5 | media: double; 6 | 7 | begin 8 | read(a); 9 | read(b); 10 | read(c); 11 | 12 | media := ((a * 2) + (b * 3) + (c * 5)) / 10; 13 | 14 | writeln('MEDIA = ', media:0:1); 15 | end. -------------------------------------------------------------------------------- /Iniciante/URI 1006.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1006.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | a = as.double(readLines(input, n=1)) 4 | b = as.double(readLines(input, n=1)) 5 | c = as.double(readLines(input, n=1)) 6 | media = (a * 2 + (b * 3 + c * 5)) / 10 7 | 8 | write(sprintf("MEDIA = %.1f", media), '') -------------------------------------------------------------------------------- /Iniciante/URI 1006.rb: -------------------------------------------------------------------------------- 1 | a = gets.to_f 2 | b = gets.to_f 3 | c = gets.to_f 4 | media = ((a * 2) + (b * 3) + (c * 5)) / 10 5 | puts "MEDIA = %.1f" % [media] -------------------------------------------------------------------------------- /Iniciante/URI 1007.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a, b, c, d, diferenca; 5 | 6 | scanf("%d %d %d %d", &a, &b, &c, &d); 7 | diferenca = a * b - c * d; 8 | printf("DIFERENCA = %d\n", diferenca); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1007.clj: -------------------------------------------------------------------------------- 1 | (def a (read-string (read-line))) 2 | (def b (read-string (read-line))) 3 | (def c (read-string (read-line))) 4 | (def d (read-string (read-line))) 5 | (def diferenca (- (* a b) (* c d))) 6 | 7 | (printf "DIFERENCA = %d\n" diferenca) -------------------------------------------------------------------------------- /Iniciante/URI 1007.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a, b, c, d, diferenca; 5 | 6 | scanf("%d %d %d %d", &a, &b, &c, &d); 7 | diferenca = a * b - c * d; 8 | printf("DIFERENCA = %d\n", diferenca); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1007.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1007.java -------------------------------------------------------------------------------- /Iniciante/URI 1007.lua: -------------------------------------------------------------------------------- 1 | a = tonumber(io.read()) 2 | b = tonumber(io.read()) 3 | c = tonumber(io.read()) 4 | d = tonumber(io.read()) 5 | diferenca = a * b - c * d 6 | print('DIFERENCA = ' .. diferenca) -------------------------------------------------------------------------------- /Iniciante/URI 1007.ml: -------------------------------------------------------------------------------- 1 | let a = read_int();; 2 | let b = read_int();; 3 | let c = read_int();; 4 | let d = read_int();; 5 | let diferenca = a * b - c * d;; 6 | Printf.printf "DIFERENCA = %d\n" (diferenca); -------------------------------------------------------------------------------- /Iniciante/URI 1007.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1007.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | a = as.double(readLines(input, n=1)) 4 | b = as.double(readLines(input, n=1)) 5 | c = as.double(readLines(input, n=1)) 6 | d = as.double(readLines(input, n=1)) 7 | diferenca = a * b - c * d 8 | 9 | write(sprintf("DIFERENCA = %d", diferenca), '') -------------------------------------------------------------------------------- /Iniciante/URI 1007.rb: -------------------------------------------------------------------------------- 1 | a = gets.to_i 2 | b = gets.to_i 3 | c = gets.to_i 4 | d = gets.to_i 5 | diferenca = a * b - c * d 6 | puts "DIFERENCA = #{diferenca}" -------------------------------------------------------------------------------- /Iniciante/URI 1008.clj: -------------------------------------------------------------------------------- 1 | (def funcionarios (read-string (read-line))) 2 | (def horas (read-string (read-line))) 3 | (def valorPorHora (read-string (read-line))) 4 | (def salario (* horas valorPorHora)) 5 | 6 | (printf "NUMBER = %d\n" funcionarios) 7 | (printf "SALARY = U$ %.2f\n" salario) -------------------------------------------------------------------------------- /Iniciante/URI 1008.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1008.java -------------------------------------------------------------------------------- /Iniciante/URI 1008.lua: -------------------------------------------------------------------------------- 1 | funcionarios = tonumber(io.read()) 2 | horas = tonumber(io.read()) 3 | valorPorHora = tonumber(io.read()) 4 | salario = horas * valorPorHora 5 | print('NUMBER = ' .. funcionarios) 6 | print(string.format('SALARY = U$ %.2f', salario)) -------------------------------------------------------------------------------- /Iniciante/URI 1008.ml: -------------------------------------------------------------------------------- 1 | let funcionarios = read_int();; 2 | let horas = read_float();; 3 | let valorPorHora = read_float();; 4 | let salario = horas *. valorPorHora;; 5 | Printf.printf "NUMBER = %d\n" (soma); 6 | Printf.printf "SALARY = U$ %.2f\n" (divd); -------------------------------------------------------------------------------- /Iniciante/URI 1008.rb: -------------------------------------------------------------------------------- 1 | funcionarios = gets.to_i 2 | horas = gets.to_i 3 | valorPorHora = gets.to_f 4 | salario = horas * valorPorHora 5 | puts "NUMBER = #{funcionarios}" 6 | puts "SALARY = U$ %.2f" % [salario] -------------------------------------------------------------------------------- /Iniciante/URI 1009.clj: -------------------------------------------------------------------------------- 1 | (def nome (read-string (read-line))) 2 | (def salarioFixo (read-string (read-line))) 3 | (def vendas (read-string (read-line))) 4 | (def total (+ (/ (* vendas 15.0) 100.0) salarioFixo)) 5 | 6 | (printf "TOTAL = R$ %.2f\n" total) -------------------------------------------------------------------------------- /Iniciante/URI 1009.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1009.java -------------------------------------------------------------------------------- /Iniciante/URI 1009.lua: -------------------------------------------------------------------------------- 1 | nome = tostring(io.read()) 2 | salarioFixo = tonumber(io.read()) 3 | vendas = tonumber(io.read()) 4 | total = ((vendas * 15) / 100) + salarioFixo 5 | print(string.format('TOTAL = R$ %.2f', total)) -------------------------------------------------------------------------------- /Iniciante/URI 1009.ml: -------------------------------------------------------------------------------- 1 | let nome = read_line();; 2 | let salarioFixo = read_float();; 3 | let vendas = read_float();; 4 | let total = ((vendas *. 15.0) /. 100.0) +. salarioFixo;; 5 | Printf.printf "TOTAL = R$ %.2f\n" (total); -------------------------------------------------------------------------------- /Iniciante/URI 1009.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1009.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | vendedor = readLines(input, n=1) 4 | salarioFixo = as.double(readLines(input, n=1)) 5 | totalVendas = as.double(readLines(input, n=1)) 6 | total = (totalVendas * 15) / 100 + salarioFixo 7 | 8 | write(sprintf("TOTAL = R$ %.2f", total), '') -------------------------------------------------------------------------------- /Iniciante/URI 1009.rb: -------------------------------------------------------------------------------- 1 | nome = gets.to_s 2 | salarioFixo = gets.to_f 3 | vendas = gets.to_f 4 | total = ((vendas * 15) / 100) + salarioFixo 5 | puts "TOTAL = R$ %.2f" % [total] -------------------------------------------------------------------------------- /Iniciante/URI 1010.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1010.java -------------------------------------------------------------------------------- /Iniciante/URI 1010.ml: -------------------------------------------------------------------------------- 1 | let cod1, n1, valor1, cod2, n2, valor2 = Scanf.scanf "%i %f %f\n%i %f %f" (fun a b c d e f -> a, b, c, d, e, f);; 2 | let total = (n1 *. valor1) +. (n2 *. valor2);; 3 | Printf.printf "VALOR A PAGAR: R$ %.2f\n" (total); -------------------------------------------------------------------------------- /Iniciante/URI 1011.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #define pi 3.14159 5 | 6 | int main() { 7 | double raio, volume; 8 | 9 | scanf("%lf", &raio); 10 | volume = (4.0 / 3) * pi * pow(raio, 3.0); 11 | printf("VOLUME = %.3f\n", volume); 12 | 13 | return 0; 14 | } -------------------------------------------------------------------------------- /Iniciante/URI 1011.clj: -------------------------------------------------------------------------------- 1 | (def pi 3.14159) 2 | (def raio (read-string (read-line))) 3 | (def volume (* (* (/ 4.0 3.0) pi) (Math/pow raio 3.0))) 4 | (printf "VOLUME = %.3f\n" volume) -------------------------------------------------------------------------------- /Iniciante/URI 1011.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #define pi 3.14159 5 | 6 | int main() { 7 | double raio, volume; 8 | 9 | scanf("%lf", &raio); 10 | volume = (4.0 / 3) * pi * pow(raio, 3.0); 11 | printf("VOLUME = %.3f\n", volume); 12 | 13 | return 0; 14 | } -------------------------------------------------------------------------------- /Iniciante/URI 1011.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'dart:math'; 3 | 4 | const double pi = 3.14159; 5 | 6 | void main() { 7 | double raio = double.parse(stdin.readLineSync()); 8 | double volume = (4.0 / 3) * pi * pow(raio, 3.0); 9 | print("VOLUME = ${volume.toStringAsFixed(3)}"); 10 | } 11 | -------------------------------------------------------------------------------- /Iniciante/URI 1011.hs: -------------------------------------------------------------------------------- 1 | import Text.Printf 2 | 3 | main :: IO () 4 | main = do 5 | raio' <- getLine 6 | let raio = read raio' :: Double 7 | let volume = (4.0 / 3) * 3.14159 * (raio ** 3.0) 8 | putStrLn $ printf "VOLUME = %.3f" volume -------------------------------------------------------------------------------- /Iniciante/URI 1011.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | const pi = 3.14159; 4 | 5 | var raio = parseFloat(lines.shift()); 6 | var volume = (4.0 / 3) * pi * Math.pow(raio, 3.0); 7 | 8 | console.log('VOLUME = ' + volume.toFixed(3)); -------------------------------------------------------------------------------- /Iniciante/URI 1011.lua: -------------------------------------------------------------------------------- 1 | pi = 3.14159 2 | raio = tonumber(io.read()) 3 | volume = (4.0 / 3) * pi * math.pow(raio, 3.0) 4 | print(string.format('VOLUME = %.3f', volume)) -------------------------------------------------------------------------------- /Iniciante/URI 1011.ml: -------------------------------------------------------------------------------- 1 | let pi = 3.14159;; 2 | let raio = read_float();; 3 | let volume = (4.0 /. 3.0) *. pi *. (raio ** 3.0);; 4 | Printf.printf "VOLUME = %.3f\n" (volume); -------------------------------------------------------------------------------- /Iniciante/URI 1011.pas: -------------------------------------------------------------------------------- 1 | uses Math; 2 | 3 | const 4 | pi = 3.14159; 5 | 6 | var 7 | raio : double; 8 | volume : double; 9 | 10 | begin 11 | read(raio); 12 | 13 | volume := (4.0 / 3) * pi * power(raio, 3.0); 14 | 15 | writeln('VOLUME = ', volume:0:3); 16 | end. -------------------------------------------------------------------------------- /Iniciante/URI 1011.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1011.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | pi = 3.14159 4 | raio = as.double(readLines(input, n=1)) 5 | volume = ((4 * pi) * (raio ** 3)) / 3 6 | 7 | write(sprintf("VOLUME = %.3f", volume), '') -------------------------------------------------------------------------------- /Iniciante/URI 1011.rb: -------------------------------------------------------------------------------- 1 | pi = 3.14159 2 | raio = gets.to_f 3 | volume = (4.0 / 3) * pi * (raio ** 3.0) 4 | puts "VOLUME = %.3f" % [volume] -------------------------------------------------------------------------------- /Iniciante/URI 1012.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1012.java -------------------------------------------------------------------------------- /Iniciante/URI 1013.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1013.java -------------------------------------------------------------------------------- /Iniciante/URI 1014.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int x; 5 | float y, media; 6 | 7 | scanf("%d %f", &x, &y); 8 | media = x / y; 9 | printf("%.3f km/l\n", media); 10 | 11 | return 0; 12 | } -------------------------------------------------------------------------------- /Iniciante/URI 1014.clj: -------------------------------------------------------------------------------- 1 | (require '[clojure.string :as str]) 2 | 3 | (def x (read-string (read-line))) 4 | (def y (read-string (read-line))) 5 | 6 | (def media (/ x y)) 7 | 8 | (printf "%.3f km/l\n" media) -------------------------------------------------------------------------------- /Iniciante/URI 1014.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int x; 5 | float y, media; 6 | 7 | scanf("%d %f", &x, &y); 8 | media = x / y; 9 | printf("%.3f km/l\n", media); 10 | 11 | return 0; 12 | } -------------------------------------------------------------------------------- /Iniciante/URI 1014.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | void main() { 4 | int x = int.parse(stdin.readLineSync()); 5 | double y = double.parse(stdin.readLineSync()); 6 | double media = x / y; 7 | print("${media.toStringAsFixed(3) } km/l"); 8 | } 9 | -------------------------------------------------------------------------------- /Iniciante/URI 1014.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func main() { 8 | var x, y, media float64 9 | 10 | fmt.Scanf("%f", &x) 11 | fmt.Scanf("%f", &y) 12 | media = x / y 13 | fmt.Printf("%.3f km/l\n", media) 14 | } -------------------------------------------------------------------------------- /Iniciante/URI 1014.hs: -------------------------------------------------------------------------------- 1 | import Text.Printf 2 | 3 | main :: IO () 4 | main = do 5 | x' <- getLine 6 | y' <- getLine 7 | 8 | let x = read x' :: Double 9 | let y = read y' :: Double 10 | let media = x / y :: Double 11 | 12 | putStrLn $ printf "%.3f km/l" media -------------------------------------------------------------------------------- /Iniciante/URI 1014.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1014.java -------------------------------------------------------------------------------- /Iniciante/URI 1014.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var x = parseInt(lines.shift()); 5 | var y = parseFloat(lines.shift()); 6 | var media = x / y; 7 | 8 | console.log(media.toFixed(3) + ' km/l'); -------------------------------------------------------------------------------- /Iniciante/URI 1014.lua: -------------------------------------------------------------------------------- 1 | x = tonumber(io.read()) 2 | y = tonumber(io.read()) 3 | media = x / y 4 | print(string.format('%.3f km/l', media)) -------------------------------------------------------------------------------- /Iniciante/URI 1014.ml: -------------------------------------------------------------------------------- 1 | let x = read_float();; 2 | let y = read_float();; 3 | let media = x /. y;; 4 | Printf.printf "%.3f km/l\n" (media); -------------------------------------------------------------------------------- /Iniciante/URI 1014.pas: -------------------------------------------------------------------------------- 1 | var 2 | x : int64; 3 | y : double; 4 | media : double; 5 | 6 | begin 7 | read(x); 8 | read(y); 9 | 10 | media := x / y; 11 | 12 | writeln(media:0:3, ' km/l'); 13 | end. -------------------------------------------------------------------------------- /Iniciante/URI 1014.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1014.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | x = as.integer(readLines(input, n=1)) 4 | y = as.double(readLines(input, n=1)) 5 | media = x / y 6 | 7 | write(sprintf("%.3f km/l", media), '') -------------------------------------------------------------------------------- /Iniciante/URI 1014.rb: -------------------------------------------------------------------------------- 1 | x = gets.to_i 2 | y = gets.to_f 3 | media = x / y 4 | puts "%.3f km/l" % [media] -------------------------------------------------------------------------------- /Iniciante/URI 1015.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1015.java -------------------------------------------------------------------------------- /Iniciante/URI 1015.ml: -------------------------------------------------------------------------------- 1 | let x1, y1, x2, y2 = Scanf.scanf "%f %f\n%f %f" (fun a b c d -> a, b, c, d);; 2 | let distancia = sqrt(((x2 -. x1) ** 2.0) +. ((y2 -. y1) ** 2.0));; 3 | Printf.printf "%.4f\n" (distancia); -------------------------------------------------------------------------------- /Iniciante/URI 1015.rb: -------------------------------------------------------------------------------- 1 | line1 = gets.split(' ') 2 | x1 = line1[0].to_f 3 | y1 = line1[1].to_f 4 | 5 | line2 = gets.split(' ') 6 | x2 = line2[0].to_f 7 | y2 = line2[1].to_f 8 | 9 | distancia = Math.sqrt(((x2 - x1) ** 2.0) + ((y2 - y1) ** 2.0)) 10 | puts "%.4f" % [distancia] -------------------------------------------------------------------------------- /Iniciante/URI 1016.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int km, minutos; 5 | 6 | scanf("%d", &km); 7 | minutos = (60 * km) / 30; 8 | printf("%d minutos\n", minutos); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1016.clj: -------------------------------------------------------------------------------- 1 | (def km (read-string (read-line))) 2 | (def minutos (/ (* 60 km) 30)) 3 | 4 | (printf "%d minutos\n" minutos) -------------------------------------------------------------------------------- /Iniciante/URI 1016.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int km, minutos; 5 | 6 | scanf("%d", &km); 7 | minutos = (60 * km) / 30; 8 | printf("%d minutos\n", minutos); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1016.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | class URI { 4 | 5 | static void Main(string[] args) { 6 | int km = int.Parse(Console.ReadLine()); 7 | int minutos = (60 * km) / 30; 8 | Console.WriteLine("{0} minutos", minutos); 9 | } 10 | 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1016.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | void main() { 4 | int km = int.parse(stdin.readLineSync()); 5 | double minutos = (60 * km) / 30; 6 | print(minutos.toStringAsFixed(0) + " minutos"); 7 | } 8 | -------------------------------------------------------------------------------- /Iniciante/URI 1016.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func main() { 8 | var km, minutos int 9 | 10 | fmt.Scanf("%d", &km) 11 | minutos = (60 * km) / 30 12 | fmt.Printf("%d minutos\n", minutos) 13 | } -------------------------------------------------------------------------------- /Iniciante/URI 1016.hs: -------------------------------------------------------------------------------- 1 | import Text.Printf 2 | 3 | main :: IO () 4 | main = do 5 | km' <- getLine 6 | let km = read km' :: Double 7 | let minutos = (60 * km / 30) :: Double 8 | putStrLn $ printf "%.0f minutos" minutos -------------------------------------------------------------------------------- /Iniciante/URI 1016.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1016.java -------------------------------------------------------------------------------- /Iniciante/URI 1016.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var km = parseInt(lines.shift()); 5 | var minutos = (60 * km) / 30; 6 | 7 | console.log(minutos + ' minutos'); -------------------------------------------------------------------------------- /Iniciante/URI 1016.kt: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | fun main(args: Array) { 4 | val leitor = Scanner(System.`in`); 5 | 6 | val km: Int = leitor.nextInt(); 7 | val minutos: Int = (60 * km) / 30; 8 | 9 | println(minutos + " minutos"); 10 | } -------------------------------------------------------------------------------- /Iniciante/URI 1016.lua: -------------------------------------------------------------------------------- 1 | km = tonumber(io.read()) 2 | minutos = (60 * km) / 30 3 | print(minutos .. ' minutos') -------------------------------------------------------------------------------- /Iniciante/URI 1016.ml: -------------------------------------------------------------------------------- 1 | let km = read_int();; 2 | let minutos = (60 * km) / 30;; 3 | Printf.printf "%d minutos\n" (minutos); -------------------------------------------------------------------------------- /Iniciante/URI 1016.pas: -------------------------------------------------------------------------------- 1 | var 2 | km : int64; 3 | minutos : double; 4 | 5 | begin 6 | read(km); 7 | 8 | minutos := (60 * km) / 30; 9 | 10 | writeln(minutos:0:0, ' minutos'); 11 | end. -------------------------------------------------------------------------------- /Iniciante/URI 1016.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1016.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | km = as.integer(readLines(input, n=1)) 4 | minutos = (60 * km) / 30 5 | 6 | write(sprintf("%d minutos", minutos), '') -------------------------------------------------------------------------------- /Iniciante/URI 1016.rb: -------------------------------------------------------------------------------- 1 | km = gets.to_i 2 | minutos = (60 * km) / 30 3 | puts "#{minutos} minutos" -------------------------------------------------------------------------------- /Iniciante/URI 1016.scala: -------------------------------------------------------------------------------- 1 | import java.util.Scanner 2 | 3 | object Main { 4 | 5 | def main(args: Array[String]) { 6 | val leitor = new Scanner(System.in) 7 | val km = leitor.nextInt() 8 | val minutos = (60 * km) / 30 9 | println(minutos + " minutos") 10 | } 11 | 12 | } -------------------------------------------------------------------------------- /Iniciante/URI 1017.clj: -------------------------------------------------------------------------------- 1 | (def tempo (read-string (read-line))) 2 | (def velocidade (read-string (read-line))) 3 | (def kilometros (* tempo velocidade)) 4 | (def media (/ kilometros 12)) 5 | 6 | (printf "%.3f\n" media) -------------------------------------------------------------------------------- /Iniciante/URI 1017.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1017.java -------------------------------------------------------------------------------- /Iniciante/URI 1017.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var tempo = parseInt(lines.shift()); 5 | var velocidade = parseInt(lines.shift()); 6 | var kilometros = tempo * velocidade; 7 | var media = kilometros / 12; 8 | 9 | console.log(media.toFixed(3)); -------------------------------------------------------------------------------- /Iniciante/URI 1017.lua: -------------------------------------------------------------------------------- 1 | tempo = tonumber(io.read()) 2 | velocidade = tonumber(io.read()) 3 | kilometros = tempo * velocidade 4 | media = kilometros / 12 5 | print(string.format('%.3f', media)) -------------------------------------------------------------------------------- /Iniciante/URI 1017.ml: -------------------------------------------------------------------------------- 1 | let tempo = read_float();; 2 | let velocidade = read_float();; 3 | let kilometros = tempo *. velocidade;; 4 | let media = kilometros /. 12.0;; 5 | Printf.printf "%.3f\n" (media); -------------------------------------------------------------------------------- /Iniciante/URI 1017.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1017.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | tempo = as.integer(readLines(input, n=1)) 4 | velocidade = as.double(readLines(input, n=1)) 5 | 6 | kilometros = tempo * velocidade 7 | media = kilometros / 12 8 | 9 | write(sprintf("%.3f", media), '') -------------------------------------------------------------------------------- /Iniciante/URI 1017.rb: -------------------------------------------------------------------------------- 1 | tempo = gets.to_f 2 | velocidade = gets.to_f 3 | kilometros = tempo * velocidade 4 | media = kilometros / 12 5 | puts "%.3f" % [media] -------------------------------------------------------------------------------- /Iniciante/URI 1018.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1018.java -------------------------------------------------------------------------------- /Iniciante/URI 1019.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1019.java -------------------------------------------------------------------------------- /Iniciante/URI 1020.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1020.java -------------------------------------------------------------------------------- /Iniciante/URI 1021.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1021.java -------------------------------------------------------------------------------- /Iniciante/URI 1035.hs: -------------------------------------------------------------------------------- 1 | main = do 2 | line <- getLine 3 | let (a:b:c:d:_) = map (read :: String -> Int) $ words line 4 | if b > c && d > a && c > 0 && d > 0 && (c + d) > (a + b) && a `mod` 2 == 0 5 | then putStrLn $ "Valores aceitos" 6 | else 7 | putStrLn $ "Valores nao aceitos" -------------------------------------------------------------------------------- /Iniciante/URI 1035.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1035.java -------------------------------------------------------------------------------- /Iniciante/URI 1035.ml: -------------------------------------------------------------------------------- 1 | let a, b, c, d = Scanf.scanf "%i %i %i %i" (fun a b c d -> a, b, c, d);; 2 | 3 | if (b > c && d > a && c > 0 && d > 0 && (c + d) > (a + b) && a mod 2 == 0) then ( 4 | Printf.printf "Valores aceitos\n"; 5 | ) else ( 6 | Printf.printf "Valores nao aceitos\n"; 7 | ) -------------------------------------------------------------------------------- /Iniciante/URI 1035.rb: -------------------------------------------------------------------------------- 1 | line = gets.split(' ') 2 | a = line[0].to_i 3 | b = line[1].to_i 4 | c = line[2].to_i 5 | d = line[3].to_i 6 | 7 | if b > c && d > a && c > 0 && d > 0 && (c + d) > (a + b) && a % 2 == 0 8 | puts "Valores aceitos" 9 | else 10 | puts "Valores nao aceitos" 11 | end -------------------------------------------------------------------------------- /Iniciante/URI 1036.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1036.java -------------------------------------------------------------------------------- /Iniciante/URI 1037.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1037.java -------------------------------------------------------------------------------- /Iniciante/URI 1038.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1038.java -------------------------------------------------------------------------------- /Iniciante/URI 1040.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1040.java -------------------------------------------------------------------------------- /Iniciante/URI 1041.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1041.java -------------------------------------------------------------------------------- /Iniciante/URI 1042.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1042.java -------------------------------------------------------------------------------- /Iniciante/URI 1043.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1043.java -------------------------------------------------------------------------------- /Iniciante/URI 1044.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a, b; 5 | 6 | scanf("%d %d", &a, &b); 7 | if (a % b == 0 || b % a == 0) { 8 | printf("Sao Multiplos\n"); 9 | } else { 10 | printf("Nao sao Multiplos\n"); 11 | } 12 | 13 | return 0; 14 | } -------------------------------------------------------------------------------- /Iniciante/URI 1044.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int a, b; 5 | 6 | scanf("%d %d", &a, &b); 7 | if (a % b == 0 || b % a == 0) { 8 | printf("Sao Multiplos\n"); 9 | } else { 10 | printf("Nao sao Multiplos\n"); 11 | } 12 | 13 | return 0; 14 | } -------------------------------------------------------------------------------- /Iniciante/URI 1044.hs: -------------------------------------------------------------------------------- 1 | main :: IO () 2 | main = do 3 | line <- getLine 4 | let (a:b:_) = map (read :: String -> Int) $ words line 5 | 6 | if a `mod` b == 0 || b `mod` a == 0 7 | then putStrLn $ "Sao Multiplos" 8 | else 9 | putStrLn $ "Nao sao Multiplos" -------------------------------------------------------------------------------- /Iniciante/URI 1044.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1044.java -------------------------------------------------------------------------------- /Iniciante/URI 1044.ml: -------------------------------------------------------------------------------- 1 | let a, b = Scanf.scanf "%i %i" (fun x y -> x, y);; 2 | 3 | if (a mod b == 0 || b mod a == 0) then ( 4 | Printf.printf "Sao Multiplos\n"; 5 | ) else ( 6 | Printf.printf "Nao sao Multiplos\n"; 7 | ) -------------------------------------------------------------------------------- /Iniciante/URI 1044.pas: -------------------------------------------------------------------------------- 1 | var 2 | a : int64; 3 | b : int64; 4 | 5 | begin 6 | readLn(a, b); 7 | 8 | if ((a mod b = 0) or (b mod a = 0)) then 9 | writeln('Sao Multiplos') 10 | else 11 | writeln('Nao sao Multiplos') 12 | end. -------------------------------------------------------------------------------- /Iniciante/URI 1044.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1044.rb: -------------------------------------------------------------------------------- 1 | line = gets.split(' ') 2 | a = line[0].to_i 3 | b = line[1].to_i 4 | 5 | if a % b == 0 || b % a == 0 6 | puts "Sao Multiplos" 7 | else 8 | puts "Nao sao Multiplos" 9 | end -------------------------------------------------------------------------------- /Iniciante/URI 1045.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1045.java -------------------------------------------------------------------------------- /Iniciante/URI 1046.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1046.java -------------------------------------------------------------------------------- /Iniciante/URI 1047.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1047.java -------------------------------------------------------------------------------- /Iniciante/URI 1048.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1048.java -------------------------------------------------------------------------------- /Iniciante/URI 1049.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1049.java -------------------------------------------------------------------------------- /Iniciante/URI 1050.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1050.java -------------------------------------------------------------------------------- /Iniciante/URI 1051.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1051.java -------------------------------------------------------------------------------- /Iniciante/URI 1052.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1052.java -------------------------------------------------------------------------------- /Iniciante/URI 1059.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1059.java -------------------------------------------------------------------------------- /Iniciante/URI 1060.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1060.java -------------------------------------------------------------------------------- /Iniciante/URI 1061.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1061.java -------------------------------------------------------------------------------- /Iniciante/URI 1064.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1064.java -------------------------------------------------------------------------------- /Iniciante/URI 1065.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1065.java -------------------------------------------------------------------------------- /Iniciante/URI 1066.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1066.java -------------------------------------------------------------------------------- /Iniciante/URI 1067.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1067.java -------------------------------------------------------------------------------- /Iniciante/URI 1067.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var x = parseInt(lines.shift()); 5 | for (let i = 1; i <= x; i++) { 6 | if (i % 2 != 0) console.log(i); 7 | } -------------------------------------------------------------------------------- /Iniciante/URI 1070.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1070.java -------------------------------------------------------------------------------- /Iniciante/URI 1070.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var x = parseInt(lines.shift()); 5 | var cont = 0; 6 | while (cont < 6) { 7 | if (x % 2 == 1) { 8 | console.log(x); 9 | cont++; 10 | } 11 | x++; 12 | } -------------------------------------------------------------------------------- /Iniciante/URI 1071.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1071.java -------------------------------------------------------------------------------- /Iniciante/URI 1072.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1072.java -------------------------------------------------------------------------------- /Iniciante/URI 1073.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1073.java -------------------------------------------------------------------------------- /Iniciante/URI 1073.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var N = parseInt(lines.shift()); 5 | for (let i = 1; i <= N; i++) { 6 | if (i % 2 == 0) console.log(i + '^2 = ' + (i * i)); 7 | } -------------------------------------------------------------------------------- /Iniciante/URI 1074.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1074.java -------------------------------------------------------------------------------- /Iniciante/URI 1075.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1075.java -------------------------------------------------------------------------------- /Iniciante/URI 1075.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var N = parseInt(lines.shift()); 5 | for (let i = 1; i < 10000; i++) { 6 | if (i % N == 2) console.log(i); 7 | } -------------------------------------------------------------------------------- /Iniciante/URI 1075.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1075.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | n = as.integer(readLines(input, n=1)) 4 | 5 | for (i in 1:10000) { 6 | if (i %% n == 2) { 7 | write(i, '') 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Iniciante/URI 1078.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1078.java -------------------------------------------------------------------------------- /Iniciante/URI 1079.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1079.java -------------------------------------------------------------------------------- /Iniciante/URI 1080.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1080.java -------------------------------------------------------------------------------- /Iniciante/URI 1094.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1094.java -------------------------------------------------------------------------------- /Iniciante/URI 1095.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1095.java -------------------------------------------------------------------------------- /Iniciante/URI 1095.py: -------------------------------------------------------------------------------- 1 | print("I=1 J=60") 2 | print("I=4 J=55") 3 | print("I=7 J=50") 4 | print("I=10 J=45") 5 | print("I=13 J=40") 6 | print("I=16 J=35") 7 | print("I=19 J=30") 8 | print("I=22 J=25") 9 | print("I=25 J=20") 10 | print("I=28 J=15") 11 | print("I=31 J=10") 12 | print("I=34 J=5") 13 | print("I=37 J=0") -------------------------------------------------------------------------------- /Iniciante/URI 1095.rb: -------------------------------------------------------------------------------- 1 | puts "I=1 J=60" 2 | puts "I=4 J=55" 3 | puts "I=7 J=50" 4 | puts "I=10 J=45" 5 | puts "I=13 J=40" 6 | puts "I=16 J=35" 7 | puts "I=19 J=30" 8 | puts "I=22 J=25" 9 | puts "I=25 J=20" 10 | puts "I=28 J=15" 11 | puts "I=31 J=10" 12 | puts "I=34 J=5" 13 | puts "I=37 J=0" -------------------------------------------------------------------------------- /Iniciante/URI 1096.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1096.java -------------------------------------------------------------------------------- /Iniciante/URI 1096.rb: -------------------------------------------------------------------------------- 1 | puts "I=1 J=7" 2 | puts "I=1 J=6" 3 | puts "I=1 J=5" 4 | puts "I=3 J=7" 5 | puts "I=3 J=6" 6 | puts "I=3 J=5" 7 | puts "I=5 J=7" 8 | puts "I=5 J=6" 9 | puts "I=5 J=5" 10 | puts "I=7 J=7" 11 | puts "I=7 J=6" 12 | puts "I=7 J=5" 13 | puts "I=9 J=7" 14 | puts "I=9 J=6" 15 | puts "I=9 J=5" -------------------------------------------------------------------------------- /Iniciante/URI 1097.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1097.java -------------------------------------------------------------------------------- /Iniciante/URI 1098.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1098.java -------------------------------------------------------------------------------- /Iniciante/URI 1099.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1099.java -------------------------------------------------------------------------------- /Iniciante/URI 1101.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1101.java -------------------------------------------------------------------------------- /Iniciante/URI 1113.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1113.java -------------------------------------------------------------------------------- /Iniciante/URI 1114.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1114.java -------------------------------------------------------------------------------- /Iniciante/URI 1115.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1115.java -------------------------------------------------------------------------------- /Iniciante/URI 1116.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1116.java -------------------------------------------------------------------------------- /Iniciante/URI 1117.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1117.java -------------------------------------------------------------------------------- /Iniciante/URI 1118.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1118.java -------------------------------------------------------------------------------- /Iniciante/URI 1131.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1131.java -------------------------------------------------------------------------------- /Iniciante/URI 1132.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1132.java -------------------------------------------------------------------------------- /Iniciante/URI 1133.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1133.java -------------------------------------------------------------------------------- /Iniciante/URI 1134.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1134.java -------------------------------------------------------------------------------- /Iniciante/URI 1142.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1142.java -------------------------------------------------------------------------------- /Iniciante/URI 1143.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1143.java -------------------------------------------------------------------------------- /Iniciante/URI 1144.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1144.java -------------------------------------------------------------------------------- /Iniciante/URI 1145.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1145.java -------------------------------------------------------------------------------- /Iniciante/URI 1146.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1146.java -------------------------------------------------------------------------------- /Iniciante/URI 1149.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1149.java -------------------------------------------------------------------------------- /Iniciante/URI 1150.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1150.java -------------------------------------------------------------------------------- /Iniciante/URI 1151.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1151.java -------------------------------------------------------------------------------- /Iniciante/URI 1153.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1153.java -------------------------------------------------------------------------------- /Iniciante/URI 1154.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1154.java -------------------------------------------------------------------------------- /Iniciante/URI 1155.c: -------------------------------------------------------------------------------- 1 | void main() { 2 | printf("5.19\n"); 3 | } -------------------------------------------------------------------------------- /Iniciante/URI 1155.clj: -------------------------------------------------------------------------------- 1 | (println "5.19") -------------------------------------------------------------------------------- /Iniciante/URI 1155.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | printf("5.19\n"); 5 | } -------------------------------------------------------------------------------- /Iniciante/URI 1155.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | class URI { 4 | 5 | static void Main(string[] args) { 6 | Console.WriteLine(5.19); 7 | } 8 | 9 | } -------------------------------------------------------------------------------- /Iniciante/URI 1155.dart: -------------------------------------------------------------------------------- 1 | void main() { 2 | print(5.19); 3 | } -------------------------------------------------------------------------------- /Iniciante/URI 1155.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func main() { 8 | fmt.Println(5.19) 9 | } -------------------------------------------------------------------------------- /Iniciante/URI 1155.hs: -------------------------------------------------------------------------------- 1 | main :: IO () 2 | main = do 3 | putStrLn $ "5.19" -------------------------------------------------------------------------------- /Iniciante/URI 1155.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1155.java -------------------------------------------------------------------------------- /Iniciante/URI 1155.js: -------------------------------------------------------------------------------- 1 | console.log(5.19); -------------------------------------------------------------------------------- /Iniciante/URI 1155.kt: -------------------------------------------------------------------------------- 1 | fun main(args: Array) { 2 | println(5.19); 3 | } -------------------------------------------------------------------------------- /Iniciante/URI 1155.lua: -------------------------------------------------------------------------------- 1 | print(5.19) -------------------------------------------------------------------------------- /Iniciante/URI 1155.ml: -------------------------------------------------------------------------------- 1 | Printf.printf "5.19\n"; -------------------------------------------------------------------------------- /Iniciante/URI 1155.pas: -------------------------------------------------------------------------------- 1 | begin 2 | writeln('5.19'); 3 | end. -------------------------------------------------------------------------------- /Iniciante/URI 1155.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1155.py: -------------------------------------------------------------------------------- 1 | print("5.19") -------------------------------------------------------------------------------- /Iniciante/URI 1155.r: -------------------------------------------------------------------------------- 1 | write("5.19", '') -------------------------------------------------------------------------------- /Iniciante/URI 1155.rb: -------------------------------------------------------------------------------- 1 | puts 5.19 -------------------------------------------------------------------------------- /Iniciante/URI 1155.scala: -------------------------------------------------------------------------------- 1 | object Main { 2 | 3 | def main(args: Array[String]) { 4 | println(5.19) 5 | } 6 | 7 | } -------------------------------------------------------------------------------- /Iniciante/URI 1156.c: -------------------------------------------------------------------------------- 1 | void main() { 2 | printf("6.00\n"); 3 | } -------------------------------------------------------------------------------- /Iniciante/URI 1156.clj: -------------------------------------------------------------------------------- 1 | (println "6.00") -------------------------------------------------------------------------------- /Iniciante/URI 1156.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | printf("6.00\n"); 5 | } -------------------------------------------------------------------------------- /Iniciante/URI 1156.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | class URI { 4 | 5 | static void Main(string[] args) { 6 | Console.WriteLine("6.00"); 7 | } 8 | 9 | } -------------------------------------------------------------------------------- /Iniciante/URI 1156.dart: -------------------------------------------------------------------------------- 1 | void main() { 2 | print("6.00"); 3 | } -------------------------------------------------------------------------------- /Iniciante/URI 1156.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func main() { 8 | fmt.Println("6.00") 9 | } -------------------------------------------------------------------------------- /Iniciante/URI 1156.hs: -------------------------------------------------------------------------------- 1 | main :: IO () 2 | main = do 3 | putStrLn $ "6.00" -------------------------------------------------------------------------------- /Iniciante/URI 1156.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1156.java -------------------------------------------------------------------------------- /Iniciante/URI 1156.js: -------------------------------------------------------------------------------- 1 | console.log('6.00'); -------------------------------------------------------------------------------- /Iniciante/URI 1156.kt: -------------------------------------------------------------------------------- 1 | fun main(args: Array) { 2 | println("6.00"); 3 | } -------------------------------------------------------------------------------- /Iniciante/URI 1156.lua: -------------------------------------------------------------------------------- 1 | print('6.00') -------------------------------------------------------------------------------- /Iniciante/URI 1156.ml: -------------------------------------------------------------------------------- 1 | Printf.printf "6.00\n"; -------------------------------------------------------------------------------- /Iniciante/URI 1156.pas: -------------------------------------------------------------------------------- 1 | begin 2 | writeln('6.00'); 3 | end. -------------------------------------------------------------------------------- /Iniciante/URI 1156.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1156.py: -------------------------------------------------------------------------------- 1 | print("6.00") -------------------------------------------------------------------------------- /Iniciante/URI 1156.r: -------------------------------------------------------------------------------- 1 | write("6.00", '') -------------------------------------------------------------------------------- /Iniciante/URI 1156.rb: -------------------------------------------------------------------------------- 1 | puts "6.00" -------------------------------------------------------------------------------- /Iniciante/URI 1156.scala: -------------------------------------------------------------------------------- 1 | object Main { 2 | 3 | def main(args: Array[String]) { 4 | println("6.00") 5 | } 6 | 7 | } -------------------------------------------------------------------------------- /Iniciante/URI 1157.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1157.java -------------------------------------------------------------------------------- /Iniciante/URI 1157.pas: -------------------------------------------------------------------------------- 1 | program uri_1157; 2 | uses crt; 3 | 4 | var Entrada,Contador : integer; 5 | 6 | BEGIN 7 | readln(Entrada); 8 | for contador:=1 to Entrada do 9 | begin 10 | if (entrada mod contador) = 0 11 | then writeln(contador); 12 | end; 13 | 14 | END. 15 | 16 | -------------------------------------------------------------------------------- /Iniciante/URI 1158.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1158.java -------------------------------------------------------------------------------- /Iniciante/URI 1159.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1159.java -------------------------------------------------------------------------------- /Iniciante/URI 1160.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1160.java -------------------------------------------------------------------------------- /Iniciante/URI 1164.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1164.java -------------------------------------------------------------------------------- /Iniciante/URI 1165.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1165.java -------------------------------------------------------------------------------- /Iniciante/URI 1172.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1172.java -------------------------------------------------------------------------------- /Iniciante/URI 1173.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1173.java -------------------------------------------------------------------------------- /Iniciante/URI 1174.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1174.java -------------------------------------------------------------------------------- /Iniciante/URI 1175.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1175.java -------------------------------------------------------------------------------- /Iniciante/URI 1176.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1176.java -------------------------------------------------------------------------------- /Iniciante/URI 1177.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1177.java -------------------------------------------------------------------------------- /Iniciante/URI 1178.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1178.java -------------------------------------------------------------------------------- /Iniciante/URI 1179.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1179.java -------------------------------------------------------------------------------- /Iniciante/URI 1180.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1180.java -------------------------------------------------------------------------------- /Iniciante/URI 1181.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1181.java -------------------------------------------------------------------------------- /Iniciante/URI 1182.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1182.java -------------------------------------------------------------------------------- /Iniciante/URI 1183.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1183.java -------------------------------------------------------------------------------- /Iniciante/URI 1184.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1184.java -------------------------------------------------------------------------------- /Iniciante/URI 1185.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1185.java -------------------------------------------------------------------------------- /Iniciante/URI 1186.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1186.java -------------------------------------------------------------------------------- /Iniciante/URI 1187.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1187.java -------------------------------------------------------------------------------- /Iniciante/URI 1188.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1188.java -------------------------------------------------------------------------------- /Iniciante/URI 1189.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1189.java -------------------------------------------------------------------------------- /Iniciante/URI 1190.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1190.java -------------------------------------------------------------------------------- /Iniciante/URI 1435.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1435.java -------------------------------------------------------------------------------- /Iniciante/URI 1478.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1478.java -------------------------------------------------------------------------------- /Iniciante/URI 1534.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1534.java -------------------------------------------------------------------------------- /Iniciante/URI 1541.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1541.java -------------------------------------------------------------------------------- /Iniciante/URI 1557.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1557.java -------------------------------------------------------------------------------- /Iniciante/URI 1564.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1564.java -------------------------------------------------------------------------------- /Iniciante/URI 1589.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1589.java -------------------------------------------------------------------------------- /Iniciante/URI 1759.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1759.java -------------------------------------------------------------------------------- /Iniciante/URI 1759.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var N = parseInt(lines.shift()); 5 | for (let i = 1; i <= N; i++) { 6 | if (i == N) console.log('Ho!'); 7 | else process.stdout.write('Ho '); 8 | } -------------------------------------------------------------------------------- /Iniciante/URI 1789.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1789.java -------------------------------------------------------------------------------- /Iniciante/URI 1827.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1827.java -------------------------------------------------------------------------------- /Iniciante/URI 1828.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1828.java -------------------------------------------------------------------------------- /Iniciante/URI 1837.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1837.java -------------------------------------------------------------------------------- /Iniciante/URI 1847.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1847.java -------------------------------------------------------------------------------- /Iniciante/URI 1848.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1848.java -------------------------------------------------------------------------------- /Iniciante/URI 1858.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1858.java -------------------------------------------------------------------------------- /Iniciante/URI 1864.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1864.java -------------------------------------------------------------------------------- /Iniciante/URI 1864.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var n = parseInt(lines.shift()); 5 | var citacao = "LIFE IS NOT A PROBLEM TO BE SOLVED"; 6 | console.log(citacao.substring(0, n)); -------------------------------------------------------------------------------- /Iniciante/URI 1865.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1865.java -------------------------------------------------------------------------------- /Iniciante/URI 1866.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1866.java -------------------------------------------------------------------------------- /Iniciante/URI 1914.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1914.java -------------------------------------------------------------------------------- /Iniciante/URI 1921.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | long long N, resposta; 5 | 6 | scanf("%lli", &N); 7 | resposta = (N * (N - 3)) / 2; 8 | printf("%lli\n", resposta); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1921.clj: -------------------------------------------------------------------------------- 1 | (def N (read-string (read-line))) 2 | (def resposta (/ (* N (- N 3)) 2)) 3 | (println resposta) -------------------------------------------------------------------------------- /Iniciante/URI 1921.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | long long N, resposta; 5 | 6 | scanf("%lli", &N); 7 | resposta = (N * (N - 3)) / 2; 8 | printf("%lli\n", resposta); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1921.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | class URI { 4 | 5 | static void Main(string[] args) { 6 | long N = long.Parse(Console.ReadLine()); 7 | long resposta = (N * (N - 3)) / 2; 8 | Console.WriteLine(resposta); 9 | } 10 | 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1921.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | void main() { 4 | double N = double.parse(stdin.readLineSync()); 5 | double resposta = (N * (N - 3)) / 2; 6 | print(resposta.toStringAsFixed(0)); 7 | } -------------------------------------------------------------------------------- /Iniciante/URI 1921.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func main() { 8 | var N, resposta uint64 9 | 10 | fmt.Scanf("%d", &N) 11 | resposta = (N * (N - 3)) / 2 12 | fmt.Println(resposta) 13 | } -------------------------------------------------------------------------------- /Iniciante/URI 1921.hs: -------------------------------------------------------------------------------- 1 | import Text.Printf 2 | 3 | main :: IO () 4 | main = do 5 | n' <- getLine 6 | 7 | let n = read n' :: Double 8 | let resposta = (n * (n - 3)) / 2 :: Double 9 | 10 | putStrLn $ printf "%.0f" resposta -------------------------------------------------------------------------------- /Iniciante/URI 1921.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1921.java -------------------------------------------------------------------------------- /Iniciante/URI 1921.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var N = parseInt(lines.shift()); 5 | var resposta = (N * (N - 3)) / 2; 6 | 7 | console.log(resposta); -------------------------------------------------------------------------------- /Iniciante/URI 1921.kt: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | fun main(args: Array) { 4 | val leitor = Scanner(System.`in`); 5 | val N: Long = leitor.nextLong(); 6 | val resposta: Long = (N * (N - 3)) / 2; 7 | println(resposta); 8 | } -------------------------------------------------------------------------------- /Iniciante/URI 1921.lua: -------------------------------------------------------------------------------- 1 | N = tonumber(io.read()) 2 | resposta = (N * (N - 3)) / 2 3 | print(resposta) -------------------------------------------------------------------------------- /Iniciante/URI 1921.ml: -------------------------------------------------------------------------------- 1 | let n = read_float();; 2 | let resposta = (n *. (n -. 3.0)) /. 2.0;; 3 | Printf.printf "%.0f\n" (resposta); -------------------------------------------------------------------------------- /Iniciante/URI 1921.pas: -------------------------------------------------------------------------------- 1 | var 2 | N : double; 3 | resposta : double; 4 | 5 | begin 6 | read(N); 7 | resposta := (N * (N - 3)) / 2; 8 | writeln(resposta:0:0); 9 | end. -------------------------------------------------------------------------------- /Iniciante/URI 1921.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1921.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | n = as.double(readLines(input, n=1)) 4 | resposta = (n * (n - 3)) / 2 5 | write(sprintf("%0.f", resposta), '') -------------------------------------------------------------------------------- /Iniciante/URI 1921.rb: -------------------------------------------------------------------------------- 1 | N = gets.to_i 2 | resposta = (N * (N - 3)) / 2 3 | puts "#{resposta}" -------------------------------------------------------------------------------- /Iniciante/URI 1921.scala: -------------------------------------------------------------------------------- 1 | import java.util.Scanner 2 | 3 | object Main { 4 | 5 | def main(args: Array[String]) { 6 | val leitor = new Scanner(System.in) 7 | val N = leitor.nextLong() 8 | val resposta = (N * (N - 3)) / 2 9 | println(resposta) 10 | } 11 | 12 | } -------------------------------------------------------------------------------- /Iniciante/URI 1924.c: -------------------------------------------------------------------------------- 1 | void main() { 2 | printf("Ciencia da Computacao\n"); 3 | } -------------------------------------------------------------------------------- /Iniciante/URI 1924.clj: -------------------------------------------------------------------------------- 1 | (println "Ciencia da Computacao") -------------------------------------------------------------------------------- /Iniciante/URI 1924.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | printf("Ciencia da Computacao\n"); 5 | } -------------------------------------------------------------------------------- /Iniciante/URI 1924.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | class URI { 4 | 5 | static void Main(string[] args) { 6 | Console.WriteLine("Ciencia da Computacao"); 7 | } 8 | 9 | } -------------------------------------------------------------------------------- /Iniciante/URI 1924.dart: -------------------------------------------------------------------------------- 1 | void main() { 2 | print("Ciencia da Computacao"); 3 | } -------------------------------------------------------------------------------- /Iniciante/URI 1924.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func main() { 8 | fmt.Println("Ciencia da Computacao") 9 | } -------------------------------------------------------------------------------- /Iniciante/URI 1924.hs: -------------------------------------------------------------------------------- 1 | main :: IO () 2 | main = do 3 | putStrLn $ "Ciencia da Computacao" -------------------------------------------------------------------------------- /Iniciante/URI 1924.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1924.java -------------------------------------------------------------------------------- /Iniciante/URI 1924.js: -------------------------------------------------------------------------------- 1 | console.log('Ciencia da Computacao'); -------------------------------------------------------------------------------- /Iniciante/URI 1924.kt: -------------------------------------------------------------------------------- 1 | fun main(args: Array) { 2 | println("Ciencia da Computacao"); 3 | } -------------------------------------------------------------------------------- /Iniciante/URI 1924.lua: -------------------------------------------------------------------------------- 1 | print('Ciencia da Computacao') -------------------------------------------------------------------------------- /Iniciante/URI 1924.ml: -------------------------------------------------------------------------------- 1 | Printf.printf "Ciencia da Computacao\n"; -------------------------------------------------------------------------------- /Iniciante/URI 1924.pas: -------------------------------------------------------------------------------- 1 | begin 2 | writeln('Ciencia da Computacao'); 3 | end. -------------------------------------------------------------------------------- /Iniciante/URI 1924.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1924.py: -------------------------------------------------------------------------------- 1 | print("Ciencia da Computacao") -------------------------------------------------------------------------------- /Iniciante/URI 1924.r: -------------------------------------------------------------------------------- 1 | write("Ciencia da Computacao", '') -------------------------------------------------------------------------------- /Iniciante/URI 1924.rb: -------------------------------------------------------------------------------- 1 | puts "Ciencia da Computacao" -------------------------------------------------------------------------------- /Iniciante/URI 1924.scala: -------------------------------------------------------------------------------- 1 | object Main { 2 | 3 | def main(args: Array[String]) { 4 | println("Ciencia da Computacao") 5 | } 6 | 7 | } -------------------------------------------------------------------------------- /Iniciante/URI 1929.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1929.java -------------------------------------------------------------------------------- /Iniciante/URI 1930.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int T1, T2, T3, T4, totalTomadas; 5 | 6 | scanf("%d %d %d %d", &T1, &T2, &T3, &T4); 7 | totalTomadas = (T1 + T2 + T3 + T4) - 3; 8 | printf("%d\n", totalTomadas); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1930.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int T1, T2, T3, T4, totalTomadas; 5 | 6 | scanf("%d %d %d %d", &T1, &T2, &T3, &T4); 7 | totalTomadas = (T1 + T2 + T3 + T4) - 3; 8 | printf("%d\n", totalTomadas); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1930.hs: -------------------------------------------------------------------------------- 1 | main = do 2 | line <- getLine 3 | 4 | let (t1:t2:t3:t4:_) = map (read :: String -> Int) $ words line 5 | let totalTomadas = (t1 + t2 + t3 + t4) - 3 :: Int 6 | 7 | putStrLn $ show totalTomadas -------------------------------------------------------------------------------- /Iniciante/URI 1930.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1930.java -------------------------------------------------------------------------------- /Iniciante/URI 1930.ml: -------------------------------------------------------------------------------- 1 | let t1, t2, t3, t4 = Scanf.scanf "%i %i %i %i" (fun a b c d -> a, b, c, d);; 2 | let totalTomadas = (t1 + t2 + t3 + t4) - 3;; 3 | Printf.printf "%d\n" (totalTomadas); -------------------------------------------------------------------------------- /Iniciante/URI 1930.pas: -------------------------------------------------------------------------------- 1 | var 2 | T1 : int64; 3 | T2 : int64; 4 | T3 : int64; 5 | T4 : int64; 6 | totalTomadas : int64; 7 | 8 | begin 9 | readLn(T1, T2, T3, T4); 10 | totalTomadas := (T1 + T2 + T3 + T4) - 3; 11 | writeln(totalTomadas); 12 | end. -------------------------------------------------------------------------------- /Iniciante/URI 1930.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1930.rb: -------------------------------------------------------------------------------- 1 | line = gets.split(' ') 2 | T1 = line[0].to_i 3 | T2 = line[1].to_i 4 | T3 = line[2].to_i 5 | T4 = line[3].to_i 6 | 7 | total = totalTomadas = (T1 + T2 + T3 + T4) - 3 8 | puts "#{totalTomadas}" -------------------------------------------------------------------------------- /Iniciante/URI 1933.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1933.java -------------------------------------------------------------------------------- /Iniciante/URI 1957.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1957.java -------------------------------------------------------------------------------- /Iniciante/URI 1958.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1958.java -------------------------------------------------------------------------------- /Iniciante/URI 1959.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | long long N, L, P; 5 | 6 | scanf("%lli %lli", &N, &L); 7 | P = N * L; 8 | printf("%lli\n", P); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1959.clj: -------------------------------------------------------------------------------- 1 | (require '[clojure.string :as str]) 2 | 3 | (def line (str/split (read-line) #" ")) 4 | (def N (Integer/parseInt (get line 0))) 5 | (def L (Integer/parseInt (get line 1))) 6 | 7 | (def P (* N L)) 8 | 9 | (printf "%.0f\n" P) -------------------------------------------------------------------------------- /Iniciante/URI 1959.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | long long N, L, P; 5 | 6 | scanf("%lli %lli", &N, &L); 7 | P = N * L; 8 | printf("%lli\n", P); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1959.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | void main() { 4 | List input = stdin.readLineSync().split(" "); 5 | int N = int.parse(input[0]); 6 | int L = int.parse(input[1]); 7 | int P = N * L; 8 | print("$P"); 9 | } -------------------------------------------------------------------------------- /Iniciante/URI 1959.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func main() { 8 | var N, L, P int64 9 | 10 | fmt.Scanf("%d", &N) 11 | fmt.Scanf("%d", &L) 12 | P = N * L 13 | fmt.Println(P) 14 | } -------------------------------------------------------------------------------- /Iniciante/URI 1959.hs: -------------------------------------------------------------------------------- 1 | import Text.Printf 2 | 3 | main = do 4 | line <- getLine 5 | 6 | let (n:l:_) = map (read :: String -> Double) $ words line 7 | let p = n * l :: Double 8 | 9 | putStrLn $ printf "%.0f" p -------------------------------------------------------------------------------- /Iniciante/URI 1959.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1959.java -------------------------------------------------------------------------------- /Iniciante/URI 1959.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var line = lines.shift().split(' '); 5 | var N = parseFloat(line[0]); 6 | var L = parseFloat(line[1]); 7 | 8 | var P = N * L; 9 | console.log(P); -------------------------------------------------------------------------------- /Iniciante/URI 1959.kt: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | fun main(args: Array) { 4 | val leitor = Scanner(System.`in`); 5 | 6 | val N: Long = leitor.nextLong(); 7 | val L: Long = leitor.nextLong(); 8 | 9 | val P: Long = N * L; 10 | println(P); 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1959.lua: -------------------------------------------------------------------------------- 1 | line = {} 2 | n = 0 3 | for i in string.gmatch(io.read("*l"), "%S+") do 4 | n = n + 1 5 | line[n] = i 6 | end 7 | N = tonumber(line[1]) 8 | L = tonumber(line[2]) 9 | 10 | P = N * L 11 | print(P) -------------------------------------------------------------------------------- /Iniciante/URI 1959.ml: -------------------------------------------------------------------------------- 1 | let n, l = Scanf.scanf "%f %f" (fun a b -> a, b);; 2 | let p = n *. l;; 3 | Printf.printf "%.0f\n" (p); -------------------------------------------------------------------------------- /Iniciante/URI 1959.pas: -------------------------------------------------------------------------------- 1 | var 2 | N : int64; 3 | L : int64; 4 | P : int64; 5 | 6 | begin 7 | readLn(N, L); 8 | 9 | P := N * L; 10 | 11 | writeln(P); 12 | end. -------------------------------------------------------------------------------- /Iniciante/URI 1959.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1959.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | line = strsplit(readLines(input, n=1), " ") 4 | n = as.double(line[[1]][1]) 5 | l = as.double(line[[1]][2]) 6 | p = n * l 7 | 8 | write(sprintf("%.0f", p), '') -------------------------------------------------------------------------------- /Iniciante/URI 1959.rb: -------------------------------------------------------------------------------- 1 | line = gets.split(' ') 2 | N = line[0].to_i 3 | L = line[1].to_i 4 | P = N * L 5 | puts "#{P}" -------------------------------------------------------------------------------- /Iniciante/URI 1960.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1960.java -------------------------------------------------------------------------------- /Iniciante/URI 1961.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1961.java -------------------------------------------------------------------------------- /Iniciante/URI 1962.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1962.java -------------------------------------------------------------------------------- /Iniciante/URI 1963.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | float A, B, aumento; 5 | 6 | scanf("%f %f", &A, &B); 7 | aumento = (B * 100.0 / A) - 100.0; 8 | printf("%.2f%%\n", aumento); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1963.clj: -------------------------------------------------------------------------------- 1 | (require '[clojure.string :as str]) 2 | 3 | (def line (str/split (read-line) #" ")) 4 | (def A (Double/parseDouble (get line 0))) 5 | (def B (Double/parseDouble (get line 1))) 6 | 7 | (def aumento (- (/ (* B 100.0) A) 100.0)) 8 | 9 | (printf "%.2f%%\n" aumento) -------------------------------------------------------------------------------- /Iniciante/URI 1963.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | float A, B, aumento; 5 | 6 | scanf("%f %f", &A, &B); 7 | aumento = (B * 100.0 / A) - 100.0; 8 | printf("%.2f%%\n", aumento); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 1963.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | void main() { 4 | List input = stdin.readLineSync().split(" "); 5 | double A = double.parse(input[0]); 6 | double B = double.parse(input[1]); 7 | double aumento = (B * 100.0 / A) - 100.0; 8 | print("${aumento.toStringAsFixed(2)}%"); 9 | } -------------------------------------------------------------------------------- /Iniciante/URI 1963.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func main() { 8 | var A, B, aumento float64 9 | 10 | fmt.Scanf("%f", &A) 11 | fmt.Scanf("%f", &B) 12 | aumento = (B * 100.0 / A) - 100.0 13 | fmt.Printf("%.2f%%\n", aumento) 14 | } -------------------------------------------------------------------------------- /Iniciante/URI 1963.hs: -------------------------------------------------------------------------------- 1 | import Text.Printf 2 | 3 | main = do 4 | line <- getLine 5 | 6 | let (a:b:_) = map (read :: String -> Double) $ words line 7 | let aumento = (b * 100.0 / a) - 100.0 8 | 9 | putStrLn $ printf "%.2f%%" aumento -------------------------------------------------------------------------------- /Iniciante/URI 1963.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1963.java -------------------------------------------------------------------------------- /Iniciante/URI 1963.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var line = lines.shift().split(' '); 5 | var A = parseFloat(line[0]); 6 | var B = parseFloat(line[1]); 7 | 8 | var aumento = (B * 100.0 / A) - 100.0; 9 | console.log(aumento.toFixed(2) + '%'); -------------------------------------------------------------------------------- /Iniciante/URI 1963.lua: -------------------------------------------------------------------------------- 1 | line = {} 2 | n = 0 3 | for i in string.gmatch(io.read("*l"), "%S+") do 4 | n = n + 1 5 | line[n] = i 6 | end 7 | A = tonumber(line[1]) 8 | B = tonumber(line[2]) 9 | 10 | aumento = (B * 100.0 / A) - 100.0 11 | print(string.format('%.2f%%', aumento)) -------------------------------------------------------------------------------- /Iniciante/URI 1963.ml: -------------------------------------------------------------------------------- 1 | let a, b = Scanf.scanf "%f %f" (fun x y -> x, y);; 2 | let aumento = (b *. 100.0 /. a) -. 100.0;; 3 | Printf.printf "%.2f%%\n" (aumento); -------------------------------------------------------------------------------- /Iniciante/URI 1963.pas: -------------------------------------------------------------------------------- 1 | var 2 | A : double; 3 | B : double; 4 | aumento : double; 5 | 6 | begin 7 | readLn(A, B); 8 | 9 | aumento := (B * 100.0 / A) - 100.0; 10 | 11 | writeln(aumento:0:2, '%'); 12 | end. -------------------------------------------------------------------------------- /Iniciante/URI 1963.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 1963.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | line = strsplit(readLines(input, n=1), " ") 4 | a = as.double(line[[1]][1]) 5 | b = as.double(line[[1]][2]) 6 | aumento = (b * 100.0 / a) - 100.0; 7 | 8 | write(sprintf("%.2f%%", aumento), '') -------------------------------------------------------------------------------- /Iniciante/URI 1963.rb: -------------------------------------------------------------------------------- 1 | line = gets.split(' ') 2 | A = line[0].to_f 3 | B = line[1].to_f 4 | aumento = (B * 100.0 / A) - 100.0 5 | puts "%.2f%%" % [aumento] -------------------------------------------------------------------------------- /Iniciante/URI 1973.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1973.java -------------------------------------------------------------------------------- /Iniciante/URI 1983.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1983.java -------------------------------------------------------------------------------- /Iniciante/URI 1984.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1984.java -------------------------------------------------------------------------------- /Iniciante/URI 1985.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 1985.java -------------------------------------------------------------------------------- /Iniciante/URI 2003.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2003.java -------------------------------------------------------------------------------- /Iniciante/URI 2006.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2006.java -------------------------------------------------------------------------------- /Iniciante/URI 2028.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2028.java -------------------------------------------------------------------------------- /Iniciante/URI 2029.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2029.java -------------------------------------------------------------------------------- /Iniciante/URI 2031.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2031.java -------------------------------------------------------------------------------- /Iniciante/URI 2057.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2057.java -------------------------------------------------------------------------------- /Iniciante/URI 2059.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2059.java -------------------------------------------------------------------------------- /Iniciante/URI 2060.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2060.java -------------------------------------------------------------------------------- /Iniciante/URI 2061.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2061.java -------------------------------------------------------------------------------- /Iniciante/URI 2126.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2126.java -------------------------------------------------------------------------------- /Iniciante/URI 2139.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2139.java -------------------------------------------------------------------------------- /Iniciante/URI 2140.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2140.java -------------------------------------------------------------------------------- /Iniciante/URI 2143.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2143.java -------------------------------------------------------------------------------- /Iniciante/URI 2146.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2146.java -------------------------------------------------------------------------------- /Iniciante/URI 2147.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2147.java -------------------------------------------------------------------------------- /Iniciante/URI 2152.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2152.java -------------------------------------------------------------------------------- /Iniciante/URI 2159.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2159.java -------------------------------------------------------------------------------- /Iniciante/URI 2160.R: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | nome = readLines(input, n=1) 4 | if (nchar(nome) > 80) { 5 | write("NO", '') 6 | } else { 7 | write("YES", '') 8 | } -------------------------------------------------------------------------------- /Iniciante/URI 2160.clj: -------------------------------------------------------------------------------- 1 | (def nome (String/valueOf (read-line))) 2 | (cond 3 | (> (count nome) 80) 4 | (println "NO") 5 | 6 | :else 7 | (println "YES") 8 | ) -------------------------------------------------------------------------------- /Iniciante/URI 2160.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2160.java -------------------------------------------------------------------------------- /Iniciante/URI 2160.js: -------------------------------------------------------------------------------- 1 | let nome = gets(); 2 | 3 | console.log(nome.length > 80 ? "NO" : "YES"); 4 | -------------------------------------------------------------------------------- /Iniciante/URI 2161.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2161.java -------------------------------------------------------------------------------- /Iniciante/URI 2162.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2162.java -------------------------------------------------------------------------------- /Iniciante/URI 2163.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2163.java -------------------------------------------------------------------------------- /Iniciante/URI 2164.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2164.java -------------------------------------------------------------------------------- /Iniciante/URI 2165.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2165.java -------------------------------------------------------------------------------- /Iniciante/URI 2166.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2166.java -------------------------------------------------------------------------------- /Iniciante/URI 2167.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2167.java -------------------------------------------------------------------------------- /Iniciante/URI 2168.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2168.java -------------------------------------------------------------------------------- /Iniciante/URI 2172.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2172.java -------------------------------------------------------------------------------- /Iniciante/URI 2176.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2176.java -------------------------------------------------------------------------------- /Iniciante/URI 2203.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2203.java -------------------------------------------------------------------------------- /Iniciante/URI 2221.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2221.java -------------------------------------------------------------------------------- /Iniciante/URI 2234.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | float H, P, media; 5 | 6 | scanf("%f %f", &H, &P); 7 | media = H / P; 8 | printf("%.2f\n", media); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 2234.clj: -------------------------------------------------------------------------------- 1 | (require '[clojure.string :as str]) 2 | 3 | (def line (str/split (read-line) #" ")) 4 | (def H (Float/parseFloat (get line 0))) 5 | (def P (Float/parseFloat (get line 1))) 6 | 7 | (def media (/ H P)) 8 | 9 | (printf "%.2f\n" media) -------------------------------------------------------------------------------- /Iniciante/URI 2234.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | float H, P, media; 5 | 6 | scanf("%f %f", &H, &P); 7 | media = H / P; 8 | printf("%.2f\n", media); 9 | 10 | return 0; 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 2234.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | void main() { 4 | List input = stdin.readLineSync().split(" "); 5 | double H = double.parse(input[0]); 6 | double P = double.parse(input[1]); 7 | double media = H / P; 8 | print("${media.toStringAsFixed(2)}"); 9 | } -------------------------------------------------------------------------------- /Iniciante/URI 2234.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func main() { 8 | var H, P, media float64 9 | 10 | fmt.Scanf("%f", &H) 11 | fmt.Scanf("%f", &P) 12 | media = H / P 13 | fmt.Printf("%.2f\n", media) 14 | } -------------------------------------------------------------------------------- /Iniciante/URI 2234.hs: -------------------------------------------------------------------------------- 1 | import Text.Printf 2 | 3 | main = do 4 | line <- getLine 5 | 6 | let (h:p:_) = map (read :: String -> Double) $ words line 7 | let media = h / p 8 | 9 | putStrLn $ printf "%.2f" media -------------------------------------------------------------------------------- /Iniciante/URI 2234.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2234.java -------------------------------------------------------------------------------- /Iniciante/URI 2234.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var line = lines.shift().split(' '); 5 | var H = parseFloat(line[0]); 6 | var P = parseFloat(line[1]); 7 | 8 | var media = H / P; 9 | console.log(media.toFixed(2)); -------------------------------------------------------------------------------- /Iniciante/URI 2234.lua: -------------------------------------------------------------------------------- 1 | line = {} 2 | n = 0 3 | for i in string.gmatch(io.read("*l"), "%S+") do 4 | n = n + 1 5 | line[n] = i 6 | end 7 | H = tonumber(line[1]) 8 | P = tonumber(line[2]) 9 | 10 | media = H / P 11 | print(string.format('%.2f', media)) -------------------------------------------------------------------------------- /Iniciante/URI 2234.ml: -------------------------------------------------------------------------------- 1 | let h, p = Scanf.scanf "%f %f" (fun a b -> a, b);; 2 | let media = h /. p;; 3 | Printf.printf "%.2f\n" (media); -------------------------------------------------------------------------------- /Iniciante/URI 2234.pas: -------------------------------------------------------------------------------- 1 | uses Math; 2 | 3 | var 4 | H : double; 5 | P : double; 6 | media : double; 7 | 8 | begin 9 | readLn(H, P); 10 | 11 | media := H / P; 12 | 13 | writeln(media:0:2); 14 | end. -------------------------------------------------------------------------------- /Iniciante/URI 2234.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 2234.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | line = strsplit(readLines(input, n=1), " ") 4 | h = as.integer(line[[1]][1]) 5 | p = as.integer(line[[1]][2]) 6 | media = h / p 7 | 8 | write(sprintf("%.2f", media), '') -------------------------------------------------------------------------------- /Iniciante/URI 2234.rb: -------------------------------------------------------------------------------- 1 | line = gets.split(' ') 2 | H = line[0].to_f 3 | P = line[1].to_f 4 | media = H / P 5 | puts "%.2f" % [media] -------------------------------------------------------------------------------- /Iniciante/URI 2235.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2235.java -------------------------------------------------------------------------------- /Iniciante/URI 2310.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2310.java -------------------------------------------------------------------------------- /Iniciante/URI 2311.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2311.java -------------------------------------------------------------------------------- /Iniciante/URI 2313.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2313.java -------------------------------------------------------------------------------- /Iniciante/URI 2334.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2334.java -------------------------------------------------------------------------------- /Iniciante/URI 2338.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2338.java -------------------------------------------------------------------------------- /Iniciante/URI 2483.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2483.java -------------------------------------------------------------------------------- /Iniciante/URI 2486.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2486.java -------------------------------------------------------------------------------- /Iniciante/URI 2493.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2493.java -------------------------------------------------------------------------------- /Iniciante/URI 2502.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2502.java -------------------------------------------------------------------------------- /Iniciante/URI 2510.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2510.java -------------------------------------------------------------------------------- /Iniciante/URI 2520.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2520.java -------------------------------------------------------------------------------- /Iniciante/URI 2523.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2523.java -------------------------------------------------------------------------------- /Iniciante/URI 2533.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2533.java -------------------------------------------------------------------------------- /Iniciante/URI 2534.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2534.java -------------------------------------------------------------------------------- /Iniciante/URI 2540.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2540.java -------------------------------------------------------------------------------- /Iniciante/URI 2542.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2542.java -------------------------------------------------------------------------------- /Iniciante/URI 2543.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2543.java -------------------------------------------------------------------------------- /Iniciante/URI 2544.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2544.java -------------------------------------------------------------------------------- /Iniciante/URI 2547.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2547.java -------------------------------------------------------------------------------- /Iniciante/URI 2551.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2551.java -------------------------------------------------------------------------------- /Iniciante/URI 2552.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2552.java -------------------------------------------------------------------------------- /Iniciante/URI 2554.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2554.java -------------------------------------------------------------------------------- /Iniciante/URI 2581.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2581.java -------------------------------------------------------------------------------- /Iniciante/URI 2582.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2582.java -------------------------------------------------------------------------------- /Iniciante/URI 2626.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2626.java -------------------------------------------------------------------------------- /Iniciante/URI 2630.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2630.java -------------------------------------------------------------------------------- /Iniciante/URI 2631.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2631.java -------------------------------------------------------------------------------- /Iniciante/URI 2633.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2633.java -------------------------------------------------------------------------------- /Iniciante/URI 2653.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2653.java -------------------------------------------------------------------------------- /Iniciante/URI 2663.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2663.java -------------------------------------------------------------------------------- /Iniciante/URI 2670.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2670.java -------------------------------------------------------------------------------- /Iniciante/URI 2674.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2674.java -------------------------------------------------------------------------------- /Iniciante/URI 2685.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2685.java -------------------------------------------------------------------------------- /Iniciante/URI 2686.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2686.java -------------------------------------------------------------------------------- /Iniciante/URI 2690.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2690.java -------------------------------------------------------------------------------- /Iniciante/URI 2702.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2702.java -------------------------------------------------------------------------------- /Iniciante/URI 2708.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2708.java -------------------------------------------------------------------------------- /Iniciante/URI 2712.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2712.java -------------------------------------------------------------------------------- /Iniciante/URI 2717.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2717.java -------------------------------------------------------------------------------- /Iniciante/URI 2718.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2718.java -------------------------------------------------------------------------------- /Iniciante/URI 2721.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2721.java -------------------------------------------------------------------------------- /Iniciante/URI 2727.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2727.java -------------------------------------------------------------------------------- /Iniciante/URI 2747.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2747.java -------------------------------------------------------------------------------- /Iniciante/URI 2748.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2748.java -------------------------------------------------------------------------------- /Iniciante/URI 2749.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2749.java -------------------------------------------------------------------------------- /Iniciante/URI 2750.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2750.java -------------------------------------------------------------------------------- /Iniciante/URI 2751.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2751.java -------------------------------------------------------------------------------- /Iniciante/URI 2752.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2752.java -------------------------------------------------------------------------------- /Iniciante/URI 2753.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2753.java -------------------------------------------------------------------------------- /Iniciante/URI 2754.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2754.java -------------------------------------------------------------------------------- /Iniciante/URI 2754.lua: -------------------------------------------------------------------------------- 1 | print('234.345000 - 45.698000') 2 | print('234 - 46') 3 | print('234.3 - 45.7') 4 | print('234.34 - 45.70') 5 | print('234.345 - 45.698') 6 | print('2.343450e+02 - 4.569800e+01') 7 | print('2.343450E+02 - 4.569800E+01') 8 | print('234.345 - 45.698') 9 | print('234.345 - 45.698') -------------------------------------------------------------------------------- /Iniciante/URI 2754.py: -------------------------------------------------------------------------------- 1 | print("234.345000 - 45.698000") 2 | print("234 - 46") 3 | print("234.3 - 45.7") 4 | print("234.34 - 45.70") 5 | print("234.345 - 45.698") 6 | print("2.343450e+02 - 4.569800e+01") 7 | print("2.343450E+02 - 4.569800E+01") 8 | print("234.345 - 45.698") 9 | print("234.345 - 45.698") -------------------------------------------------------------------------------- /Iniciante/URI 2754.rb: -------------------------------------------------------------------------------- 1 | puts "234.345000 - 45.698000" 2 | puts "234 - 46" 3 | puts "234.3 - 45.7" 4 | puts "234.34 - 45.70" 5 | puts "234.345 - 45.698" 6 | puts "2.343450e+02 - 4.569800e+01" 7 | puts "2.343450E+02 - 4.569800E+01" 8 | puts "234.345 - 45.698" 9 | puts "234.345 - 45.698" -------------------------------------------------------------------------------- /Iniciante/URI 2755.c: -------------------------------------------------------------------------------- 1 | void main() { 2 | printf("\"Ro'b'er\tto\\/\"\n"); 3 | printf("(._.) ( l: ) ( .-. ) ( :l ) (._.)\n"); 4 | printf("(^_-) (-_-) (-_^)\n"); 5 | printf("(\"_\") ('.')\n"); 6 | } -------------------------------------------------------------------------------- /Iniciante/URI 2755.clj: -------------------------------------------------------------------------------- 1 | (println "\"Ro'b'er\tto\\/\"") 2 | (println "(._.) ( l: ) ( .-. ) ( :l ) (._.)") 3 | (println "(^_-) (-_-) (-_^)") 4 | (println "(\"_\") ('.')") -------------------------------------------------------------------------------- /Iniciante/URI 2755.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | printf("\"Ro'b'er\tto\\/\"\n"); 5 | printf("(._.) ( l: ) ( .-. ) ( :l ) (._.)\n"); 6 | printf("(^_-) (-_-) (-_^)\n"); 7 | printf("(\"_\") ('.')\n"); 8 | } -------------------------------------------------------------------------------- /Iniciante/URI 2755.dart: -------------------------------------------------------------------------------- 1 | void main() { 2 | print("\"Ro'b'er\tto\\/\""); 3 | print("(._.) ( l: ) ( .-. ) ( :l ) (._.)"); 4 | print("(^_-) (-_-) (-_^)"); 5 | print("(\"_\") ('.')"); 6 | } -------------------------------------------------------------------------------- /Iniciante/URI 2755.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func main() { 8 | fmt.Println("\"Ro'b'er\tto\\/\"") 9 | fmt.Println("(._.) ( l: ) ( .-. ) ( :l ) (._.)") 10 | fmt.Println("(^_-) (-_-) (-_^)") 11 | fmt.Println("(\"_\") ('.')") 12 | } -------------------------------------------------------------------------------- /Iniciante/URI 2755.hs: -------------------------------------------------------------------------------- 1 | main :: IO () 2 | main = do 3 | putStrLn $ "\"Ro'b'er\tto\\/\"" 4 | putStrLn $ "(._.) ( l: ) ( .-. ) ( :l ) (._.)" 5 | putStrLn $ "(^_-) (-_-) (-_^)" 6 | putStrLn $ "(\"_\") ('.')" -------------------------------------------------------------------------------- /Iniciante/URI 2755.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2755.java -------------------------------------------------------------------------------- /Iniciante/URI 2755.js: -------------------------------------------------------------------------------- 1 | console.log('"Ro\'b\'er\tto\\/"'); 2 | console.log('(._.) ( l: ) ( .-. ) ( :l ) (._.)'); 3 | console.log('(^_-) (-_-) (-_^)'); 4 | console.log('("_") (\'.\')'); -------------------------------------------------------------------------------- /Iniciante/URI 2755.kt: -------------------------------------------------------------------------------- 1 | fun main(args: Array) { 2 | println("\"Ro'b'er\tto\\/\""); 3 | println("(._.) ( l: ) ( .-. ) ( :l ) (._.)"); 4 | println("(^_-) (-_-) (-_^)"); 5 | println("(\"_\") ('.')"); 6 | } -------------------------------------------------------------------------------- /Iniciante/URI 2755.lua: -------------------------------------------------------------------------------- 1 | print('"Ro\'b\'er\tto\\/"') 2 | print('(._.) ( l: ) ( .-. ) ( :l ) (._.)') 3 | print('(^_-) (-_-) (-_^)') 4 | print('("_") (\'.\')') -------------------------------------------------------------------------------- /Iniciante/URI 2755.ml: -------------------------------------------------------------------------------- 1 | Printf.printf "\"Ro'b'er\tto\\/\"\n"; 2 | Printf.printf "(._.) ( l: ) ( .-. ) ( :l ) (._.)\n"; 3 | Printf.printf "(^_-) (-_-) (-_^)\n"; 4 | Printf.printf "(\"_\") ('.')\n"; -------------------------------------------------------------------------------- /Iniciante/URI 2755.pas: -------------------------------------------------------------------------------- 1 | begin 2 | writeln('"Ro''b''er'#9'to\/"'); 3 | writeln('(._.) ( l: ) ( .-. ) ( :l ) (._.)'); 4 | writeln('(^_-) (-_-) (-_^)'); 5 | writeln('("_") (''.'')'); 6 | end. -------------------------------------------------------------------------------- /Iniciante/URI 2755.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 2755.py: -------------------------------------------------------------------------------- 1 | print("\"Ro'b'er\tto\\/\"") 2 | print("(._.) ( l: ) ( .-. ) ( :l ) (._.)") 3 | print("(^_-) (-_-) (-_^)") 4 | print("(\"_\") ('.')") -------------------------------------------------------------------------------- /Iniciante/URI 2755.r: -------------------------------------------------------------------------------- 1 | write("\"Ro'b'er\tto\\/\"", '') 2 | write("(._.) ( l: ) ( .-. ) ( :l ) (._.)", '') 3 | write("(^_-) (-_-) (-_^)", '') 4 | write("(\"_\") ('.')", '') -------------------------------------------------------------------------------- /Iniciante/URI 2755.rb: -------------------------------------------------------------------------------- 1 | puts "\"Ro'b'er\tto\\/\"" 2 | puts "(._.) ( l: ) ( .-. ) ( :l ) (._.)" 3 | puts "(^_-) (-_-) (-_^)" 4 | puts "(\"_\") ('.')" -------------------------------------------------------------------------------- /Iniciante/URI 2755.scala: -------------------------------------------------------------------------------- 1 | object Main { 2 | 3 | def main(args: Array[String]) { 4 | println("\"Ro'b'er\tto\\/\"") 5 | println("(._.) ( l: ) ( .-. ) ( :l ) (._.)") 6 | println("(^_-) (-_-) (-_^)") 7 | println("(\"_\") ('.')") 8 | } 9 | 10 | } -------------------------------------------------------------------------------- /Iniciante/URI 2756.clj: -------------------------------------------------------------------------------- 1 | (println " A") 2 | (println " B B") 3 | (println " C C") 4 | (println " D D") 5 | (println " E E") 6 | (println " D D") 7 | (println " C C") 8 | (println " B B") 9 | (println " A") -------------------------------------------------------------------------------- /Iniciante/URI 2756.dart: -------------------------------------------------------------------------------- 1 | void main() { 2 | print(" A"); 3 | print(" B B"); 4 | print(" C C"); 5 | print(" D D"); 6 | print(" E E"); 7 | print(" D D"); 8 | print(" C C"); 9 | print(" B B"); 10 | print(" A"); 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 2756.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2756.java -------------------------------------------------------------------------------- /Iniciante/URI 2756.js: -------------------------------------------------------------------------------- 1 | console.log(' A'); 2 | console.log(' B B'); 3 | console.log(' C C'); 4 | console.log(' D D'); 5 | console.log(' E E'); 6 | console.log(' D D'); 7 | console.log(' C C'); 8 | console.log(' B B'); 9 | console.log(' A'); -------------------------------------------------------------------------------- /Iniciante/URI 2756.kt: -------------------------------------------------------------------------------- 1 | fun main(args: Array) { 2 | println(" A"); 3 | println(" B B"); 4 | println(" C C"); 5 | println(" D D"); 6 | println(" E E"); 7 | println(" D D"); 8 | println(" C C"); 9 | println(" B B"); 10 | println(" A"); 11 | } -------------------------------------------------------------------------------- /Iniciante/URI 2756.lua: -------------------------------------------------------------------------------- 1 | print(' A') 2 | print(' B B') 3 | print(' C C') 4 | print(' D D') 5 | print(' E E') 6 | print(' D D') 7 | print(' C C') 8 | print(' B B') 9 | print(' A') -------------------------------------------------------------------------------- /Iniciante/URI 2756.ml: -------------------------------------------------------------------------------- 1 | Printf.printf " A\n"; 2 | Printf.printf " B B\n"; 3 | Printf.printf " C C\n"; 4 | Printf.printf " D D\n"; 5 | Printf.printf " E E\n"; 6 | Printf.printf " D D\n"; 7 | Printf.printf " C C\n"; 8 | Printf.printf " B B\n"; 9 | Printf.printf " A\n"; -------------------------------------------------------------------------------- /Iniciante/URI 2756.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 2756.py: -------------------------------------------------------------------------------- 1 | print(" A") 2 | print(" B B") 3 | print(" C C") 4 | print(" D D") 5 | print(" E E") 6 | print(" D D") 7 | print(" C C") 8 | print(" B B") 9 | print(" A") -------------------------------------------------------------------------------- /Iniciante/URI 2756.r: -------------------------------------------------------------------------------- 1 | write(" A", '') 2 | write(" B B", '') 3 | write(" C C", '') 4 | write(" D D", '') 5 | write(" E E", '') 6 | write(" D D", '') 7 | write(" C C", '') 8 | write(" B B", '') 9 | write(" A", '') -------------------------------------------------------------------------------- /Iniciante/URI 2756.rb: -------------------------------------------------------------------------------- 1 | puts " A" 2 | puts " B B" 3 | puts " C C" 4 | puts " D D" 5 | puts " E E" 6 | puts " D D" 7 | puts " C C" 8 | puts " B B" 9 | puts " A" -------------------------------------------------------------------------------- /Iniciante/URI 2757.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2757.java -------------------------------------------------------------------------------- /Iniciante/URI 2758.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2758.java -------------------------------------------------------------------------------- /Iniciante/URI 2759.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2759.java -------------------------------------------------------------------------------- /Iniciante/URI 2760.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2760.java -------------------------------------------------------------------------------- /Iniciante/URI 2761.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2761.java -------------------------------------------------------------------------------- /Iniciante/URI 2762.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2762.java -------------------------------------------------------------------------------- /Iniciante/URI 2763.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2763.java -------------------------------------------------------------------------------- /Iniciante/URI 2764.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2764.java -------------------------------------------------------------------------------- /Iniciante/URI 2765.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2765.java -------------------------------------------------------------------------------- /Iniciante/URI 2766.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2766.java -------------------------------------------------------------------------------- /Iniciante/URI 2770.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2770.java -------------------------------------------------------------------------------- /Iniciante/URI 2774.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2774.java -------------------------------------------------------------------------------- /Iniciante/URI 2779.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2779.java -------------------------------------------------------------------------------- /Iniciante/URI 2780.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2780.java -------------------------------------------------------------------------------- /Iniciante/URI 2783.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2783.java -------------------------------------------------------------------------------- /Iniciante/URI 2786.clj: -------------------------------------------------------------------------------- 1 | (def L (read-string (read-line))) 2 | (def C (read-string (read-line))) 3 | 4 | (def lajes1 (+ (* L C) (* (- L 1) (- C 1)))) 5 | (def lajes2 (+ (* (- L 1) 2) (* (- C 1) 2))) 6 | 7 | (println lajes1) 8 | (println lajes2) -------------------------------------------------------------------------------- /Iniciante/URI 2786.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | void main() { 4 | int L = int.parse(stdin.readLineSync()); 5 | int C = int.parse(stdin.readLineSync()); 6 | int lajes1 = (L * C) + ((L - 1) * (C - 1)); 7 | int lajes2 = ((L - 1) * 2) + ((C - 1) * 2); 8 | print(lajes1); 9 | print(lajes2); 10 | } -------------------------------------------------------------------------------- /Iniciante/URI 2786.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2786.java -------------------------------------------------------------------------------- /Iniciante/URI 2786.lua: -------------------------------------------------------------------------------- 1 | L = tonumber(io.read()) 2 | C = tonumber(io.read()) 3 | lajes1 = (L * C) + ((L - 1) * (C - 1)) 4 | lajes2 = ((L - 1) * 2) + ((C - 1) * 2) 5 | print(lajes1) 6 | print(lajes2) -------------------------------------------------------------------------------- /Iniciante/URI 2786.ml: -------------------------------------------------------------------------------- 1 | let l = read_int();; 2 | let c = read_int();; 3 | let lajes1 = (l * c) + ((l - 1) * (c - 1));; 4 | let lajes2 = ((l - 1) * 2) + ((c - 1) * 2);; 5 | Printf.printf "%d\n" (lajes1); 6 | Printf.printf "%d\n" (lajes2); -------------------------------------------------------------------------------- /Iniciante/URI 2786.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 2786.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | l = as.integer(readLines(input, n=1)) 4 | c = as.integer(readLines(input, n=1)) 5 | 6 | lajes1 = (l * c) + ((l - 1) * (c - 1)) 7 | lajes2 = ((l - 1) * 2) + ((c - 1) * 2) 8 | 9 | write(lajes1, '') 10 | write(lajes2, '') -------------------------------------------------------------------------------- /Iniciante/URI 2786.rb: -------------------------------------------------------------------------------- 1 | L = gets.to_i 2 | C = gets.to_i 3 | lajes1 = (L * C) + ((L - 1) * (C - 1)) 4 | lajes2 = ((L - 1) * 2) + ((C - 1) * 2) 5 | puts "#{lajes1}" 6 | puts "#{lajes2}" -------------------------------------------------------------------------------- /Iniciante/URI 2787.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2787.java -------------------------------------------------------------------------------- /Iniciante/URI 2791.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2791.java -------------------------------------------------------------------------------- /Iniciante/URI 2802.clj: -------------------------------------------------------------------------------- 1 | (def N (read-string (read-line))) 2 | (def resposta (/ (+ (- (+ (- (Math/pow N 4.0) (* 6.0 (Math/pow N 3.0))) (* 23.0 (Math/pow N 2.0))) (* 18.0 N)) 24.0) 24.0)) 3 | (printf "%.0f\n" resposta) -------------------------------------------------------------------------------- /Iniciante/URI 2802.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | import 'dart:math'; 3 | 4 | void main() { 5 | double N = double.parse(stdin.readLineSync()); 6 | double resposta = (pow(N, 4.0) - (6.0 * pow(N, 3.0)) + (23.0 * pow(N, 2.0)) - (18.0 * N) + 24.0 ) / 24.0; 7 | print(resposta.toStringAsFixed(0)); 8 | } 9 | -------------------------------------------------------------------------------- /Iniciante/URI 2802.hs: -------------------------------------------------------------------------------- 1 | import Text.Printf 2 | 3 | main = do 4 | n' <- getLine 5 | 6 | let n = read n' :: Double 7 | let resposta = ((n ** 4.0) - (6.0 * (n ** 3.0)) + (23.0 * (n ** 2.0)) - (18.0 * n) + 24.0 ) / 24.0 :: Double 8 | 9 | putStrLn $ printf "%.0f" resposta -------------------------------------------------------------------------------- /Iniciante/URI 2802.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2802.java -------------------------------------------------------------------------------- /Iniciante/URI 2802.lua: -------------------------------------------------------------------------------- 1 | N = tonumber(io.read()) 2 | resposta = (math.pow(N, 4.0) - (6.0 * math.pow(N, 3.0)) + (23.0 * math.pow(N, 2.0)) - (18.0 * N) + 24.0 ) / 24.0 3 | print(string.format('%.0f', resposta)) -------------------------------------------------------------------------------- /Iniciante/URI 2802.ml: -------------------------------------------------------------------------------- 1 | let n = read_float();; 2 | let resposta = ((n ** 4.0) -. (6.0 *. (n ** 3.0)) +. (23.0 *. (n ** 2.0)) -. (18.0 *. n) +. 24.0 ) /. 24.0;; 3 | Printf.printf "%.0f\n" (resposta); -------------------------------------------------------------------------------- /Iniciante/URI 2802.pas: -------------------------------------------------------------------------------- 1 | uses Math; 2 | 3 | var 4 | N : double; 5 | resposta : double; 6 | 7 | begin 8 | readLn(N); 9 | 10 | resposta := (power(N, 4.0) - (6.0 * power(N, 3.0)) + (23.0 * power(N, 2.0)) - (18.0 * N) + 24.0 ) / 24.0; 11 | 12 | writeln(resposta:0:0); 13 | end. -------------------------------------------------------------------------------- /Iniciante/URI 2802.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Iniciante/URI 2802.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | n = as.double(readLines(input, n=1)) 4 | resposta = ((n ** 4.0) - (6.0 * (n ** 3.0)) + (23.0 * (n ** 2.0)) - (18.0 * n) + 24.0 ) / 24.0 5 | 6 | write(sprintf("%.0f", resposta), '') 7 | -------------------------------------------------------------------------------- /Iniciante/URI 2802.rb: -------------------------------------------------------------------------------- 1 | N = gets.to_f 2 | resposta = ((n ** 4.0) - (6.0 * (n ** 3.0)) + (23.0 * (n ** 2.0)) - (18.0 * n) + 24.0 ) / 24.0 3 | puts "%.0f" % [resposta] -------------------------------------------------------------------------------- /Iniciante/URI 2807.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2807.java -------------------------------------------------------------------------------- /Iniciante/URI 2808.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2808.java -------------------------------------------------------------------------------- /Iniciante/URI 2812.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2812.java -------------------------------------------------------------------------------- /Iniciante/URI 2813.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2813.java -------------------------------------------------------------------------------- /Iniciante/URI 2826.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2826.java -------------------------------------------------------------------------------- /Iniciante/URI 2829.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2829.java -------------------------------------------------------------------------------- /Iniciante/URI 2845.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2845.java -------------------------------------------------------------------------------- /Iniciante/URI 2846.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2846.java -------------------------------------------------------------------------------- /Iniciante/URI 2850.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2850.java -------------------------------------------------------------------------------- /Iniciante/URI 2861.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2861.java -------------------------------------------------------------------------------- /Iniciante/URI 2861.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var C = parseInt(lines.shift()); 5 | for (let i = 0; i < C; i++) { 6 | console.log('gzuz'); 7 | } -------------------------------------------------------------------------------- /Iniciante/URI 2862.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2862.java -------------------------------------------------------------------------------- /Iniciante/URI 2863.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2863.java -------------------------------------------------------------------------------- /Iniciante/URI 2867.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2867.java -------------------------------------------------------------------------------- /Iniciante/URI 2868.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2868.java -------------------------------------------------------------------------------- /Iniciante/URI 2879.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2879.java -------------------------------------------------------------------------------- /Iniciante/URI 2896.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2896.java -------------------------------------------------------------------------------- /Iniciante/URI 2930.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Iniciante/URI 2930.java -------------------------------------------------------------------------------- /Iniciante/URI 3301.py: -------------------------------------------------------------------------------- 1 | h, z, l = map(int, input().split()) 2 | if ((h > z) & (h < l)) or ((h < z) & (h > l)): 3 | print("huguinho") 4 | elif ((z > h) & (z < l)) or ((z < h) & (z > l)): 5 | print("zezinho") 6 | else: 7 | print("luisinho") 8 | -------------------------------------------------------------------------------- /Matemática/URI 1161.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Matemática/URI 1161.java -------------------------------------------------------------------------------- /Matemática/URI 1492.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Matemática/URI 1492.java -------------------------------------------------------------------------------- /Matemática/URI 2839.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int meias; 5 | 6 | scanf("%d", &meias); 7 | printf("%d\n", meias + 1); 8 | 9 | return 0; 10 | } -------------------------------------------------------------------------------- /Matemática/URI 2839.clj: -------------------------------------------------------------------------------- 1 | (def meais (read-string (read-line))) 2 | (println (+ meias 1)) -------------------------------------------------------------------------------- /Matemática/URI 2839.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | int meias; 5 | 6 | scanf("%d", &meias); 7 | printf("%d\n", meias + 1); 8 | 9 | return 0; 10 | } -------------------------------------------------------------------------------- /Matemática/URI 2839.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | class URI { 4 | 5 | static void Main(string[] args) { 6 | int meias = int.Parse(Console.ReadLine()); 7 | Console.WriteLine("{0}", meias + 1); 8 | } 9 | 10 | } -------------------------------------------------------------------------------- /Matemática/URI 2839.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | void main() { 4 | int meias = int.parse(stdin.readLineSync()); 5 | print("${meias + 1}"); 6 | } -------------------------------------------------------------------------------- /Matemática/URI 2839.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func main() { 8 | var meias int 9 | 10 | fmt.Scanf("%d", &meias) 11 | fmt.Printf("%d\n", meias + 1) 12 | } -------------------------------------------------------------------------------- /Matemática/URI 2839.hs: -------------------------------------------------------------------------------- 1 | main :: IO () 2 | main = do 3 | meias' <- getLine 4 | let meias = read meias' :: Int 5 | putStrLn $ show (meias + 1) -------------------------------------------------------------------------------- /Matemática/URI 2839.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Matemática/URI 2839.java -------------------------------------------------------------------------------- /Matemática/URI 2839.js: -------------------------------------------------------------------------------- 1 | var input = require('fs').readFileSync('/dev/stdin', 'utf8'); 2 | var lines = input.split('\n'); 3 | 4 | var meias = parseInt(lines.shift()); 5 | console.log(meias + 1); -------------------------------------------------------------------------------- /Matemática/URI 2839.kt: -------------------------------------------------------------------------------- 1 | import java.util.Scanner; 2 | 3 | fun main(args: Array) { 4 | val leitor = Scanner(System.`in`); 5 | val meias: Int = leitor.nextInt(); 6 | println(meias + 1); 7 | } -------------------------------------------------------------------------------- /Matemática/URI 2839.lua: -------------------------------------------------------------------------------- 1 | meias = tonumber(io.read()) 2 | print(meias + 1) -------------------------------------------------------------------------------- /Matemática/URI 2839.ml: -------------------------------------------------------------------------------- 1 | let meias = read_int();; 2 | Printf.printf "%d\n" (meias + 1); -------------------------------------------------------------------------------- /Matemática/URI 2839.pas: -------------------------------------------------------------------------------- 1 | var 2 | meias : int64; 3 | begin 4 | read(meias); 5 | writeln(meias + 1); 6 | end. -------------------------------------------------------------------------------- /Matemática/URI 2839.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Matemática/URI 2839.py: -------------------------------------------------------------------------------- 1 | meias = None 2 | 3 | def read_integer(): 4 | try: 5 | # read for Python 2.x 6 | return int(raw_input()) 7 | except NameError: 8 | # read for Python 3.x 9 | return int(input()) 10 | 11 | meias = read_integer() 12 | print(meias + 1) -------------------------------------------------------------------------------- /Matemática/URI 2839.r: -------------------------------------------------------------------------------- 1 | input = file('stdin', 'r') 2 | 3 | meias = as.integer(readLines(input, n=1)) 4 | 5 | write(sprintf("%d", meias + 1), '') -------------------------------------------------------------------------------- /Matemática/URI 2839.rb: -------------------------------------------------------------------------------- 1 | meias = gets.to_i 2 | puts "#{meias + 1}" -------------------------------------------------------------------------------- /Matemática/URI 2839.scala: -------------------------------------------------------------------------------- 1 | import java.util.Scanner 2 | 3 | object Main { 4 | 5 | def main(args: Array[String]) { 6 | val leitor = new Scanner(System.in) 7 | val meias = leitor.nextInt() 8 | println(meias + 1) 9 | } 10 | 11 | } -------------------------------------------------------------------------------- /Matemática/URI 2890.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Matemática/URI 2890.java -------------------------------------------------------------------------------- /Sql/URI 2602.sql: -------------------------------------------------------------------------------- 1 | SELECT name 2 | FROM customers 3 | WHERE UPPER(state) = 'RS' -------------------------------------------------------------------------------- /Sql/URI 2603.sql: -------------------------------------------------------------------------------- 1 | SELECT name, street 2 | FROM customers 3 | WHERE LOWER(city) = 'porto alegre' -------------------------------------------------------------------------------- /Sql/URI 2604.sql: -------------------------------------------------------------------------------- 1 | SELECT id, name 2 | FROM products 3 | WHERE price > 100 or price < 10 -------------------------------------------------------------------------------- /Sql/URI 2605.sql: -------------------------------------------------------------------------------- 1 | SELECT p.name, f.name 2 | FROM products p INNER JOIN providers f ON 3 | p.id_providers = f.id 4 | WHERE p.id_categories = 6 -------------------------------------------------------------------------------- /Sql/URI 2606.sql: -------------------------------------------------------------------------------- 1 | SELECT p.id, p.name 2 | FROM products p INNER JOIN categories c ON 3 | p.id_categories = c.id 4 | WHERE LOWER(c.name) LIKE 'super%' -------------------------------------------------------------------------------- /Sql/URI 2607.sql: -------------------------------------------------------------------------------- 1 | SELECT DISTINCT city 2 | FROM providers 3 | ORDER BY city ASC -------------------------------------------------------------------------------- /Sql/URI 2608.sql: -------------------------------------------------------------------------------- 1 | SELECT MAX(price), MIN(price) 2 | FROM products -------------------------------------------------------------------------------- /Sql/URI 2609.sql: -------------------------------------------------------------------------------- 1 | SELECT c.name, SUM(p.amount) 2 | FROM categories c INNER JOIN products p 3 | ON c.id = p.id_categories 4 | GROUP BY c.name -------------------------------------------------------------------------------- /Sql/URI 2610.sql: -------------------------------------------------------------------------------- 1 | SELECT round(AVG(price), 2) as price 2 | FROM products -------------------------------------------------------------------------------- /Sql/URI 2611.sql: -------------------------------------------------------------------------------- 1 | SELECT m.id, m.name 2 | FROM movies m INNER JOIN genres g ON 3 | m.id_genres = g.id 4 | WHERE LOWER(g.description) = 'action' -------------------------------------------------------------------------------- /Sql/URI 2612.sql: -------------------------------------------------------------------------------- 1 | SELECT m.id, m.name 2 | FROM genres g INNER JOIN movies m ON 3 | g.id = m.id_genres INNER JOIN movies_actors ma ON 4 | ma.id_movies = m.id INNER JOIN actors a ON 5 | a.id = ma.id_actors 6 | WHERE LOWER(a.name) LIKE '%silva' AND LOWER(g.description) = 'action' -------------------------------------------------------------------------------- /Sql/URI 2613.sql: -------------------------------------------------------------------------------- 1 | SELECT m.id, m.name 2 | FROM movies m INNER JOIN prices p ON 3 | m.id_prices = p.id 4 | WHERE p.categorie = 'Promotion' -------------------------------------------------------------------------------- /Sql/URI 2615.sql: -------------------------------------------------------------------------------- 1 | SELECT DISTINCT city 2 | FROM customers -------------------------------------------------------------------------------- /Sql/URI 2617.sql: -------------------------------------------------------------------------------- 1 | SELECT p.name, f.name 2 | FROM providers f INNER JOIN products p ON 3 | f.id = p.id_providers 4 | WHERE f.name = 'Ajax SA' -------------------------------------------------------------------------------- /Sql/URI 2618.sql: -------------------------------------------------------------------------------- 1 | SELECT p.name, f.name, c.name 2 | FROM categories c INNER JOIN products p ON 3 | p.id_categories = c.id INNER JOIN providers f ON 4 | p.id_providers = f.id 5 | WHERE c.name = 'Imported' AND f.name = 'Sansul SA' -------------------------------------------------------------------------------- /Sql/URI 2619.sql: -------------------------------------------------------------------------------- 1 | SELECT p.name, f.name, p.price 2 | FROM categories c INNER JOIN products p ON 3 | p.id_categories = c.id INNER JOIN providers f ON 4 | p.id_providers = f.id 5 | WHERE c.name = 'Super Luxury' AND p.price > 1000 -------------------------------------------------------------------------------- /Sql/URI 2620.sql: -------------------------------------------------------------------------------- 1 | SELECT c.name, o.id 2 | FROM customers c INNER JOIN orders o ON 3 | c.id = o.id_customers 4 | WHERE o.orders_date BETWEEN '2016-01-01' AND '2016-06-30' -------------------------------------------------------------------------------- /Sql/URI 2621.sql: -------------------------------------------------------------------------------- 1 | SELECT p.name 2 | FROM products p INNER JOIN providers f ON 3 | p.id_providers = f.id 4 | WHERE f.name LIKE 'P%' AND p.amount BETWEEN 10 AND 20 -------------------------------------------------------------------------------- /Sql/URI 2622.sql: -------------------------------------------------------------------------------- 1 | SELECT c.name 2 | FROM customers c INNER JOIN legal_person l ON 3 | c.id = l.id_customers -------------------------------------------------------------------------------- /Sql/URI 2623.sql: -------------------------------------------------------------------------------- 1 | SELECT p.name, c.name 2 | FROM products p INNER JOIN categories c ON 3 | p.id_categories = c.id 4 | WHERE p.amount > 100 AND p.id_categories IN(1, 2, 3, 6, 9) -------------------------------------------------------------------------------- /Sql/URI 2624.sql: -------------------------------------------------------------------------------- 1 | SELECT COUNT (DISTINCT city) 2 | FROM customers -------------------------------------------------------------------------------- /Sql/URI 2625.sql: -------------------------------------------------------------------------------- 1 | SELECT substring(cpf, 1, 3 ) || '.' || substring(cpf, 4, 3 ) || '.' || substring(cpf, 7, 3) || '-' || substring(cpf, 10, 2) 2 | FROM natural_person -------------------------------------------------------------------------------- /Sql/URI 2738.sql: -------------------------------------------------------------------------------- 1 | SELECT c.name, cast((((s.math * 2) + (s.specific * 3) + (s.project_plan * 5)) / 10) AS NUMERIC(15, 2)) AS avg 2 | FROM candidate c INNER JOIN score s ON 3 | c.id = s.candidate_id 4 | ORDER BY avg DESC -------------------------------------------------------------------------------- /Sql/URI 2739.sql: -------------------------------------------------------------------------------- 1 | SELECT name, cast(EXTRACT(DAY FROM payday) AS INT) as day 2 | FROM loan -------------------------------------------------------------------------------- /Sql/URI 2740.sql: -------------------------------------------------------------------------------- 1 | ( 2 | SELECT concat('Podium: ', team) as name 3 | FROM league 4 | WHERE position <= 3 5 | ) 6 | UNION ALL 7 | ( 8 | SELECT concat('Demoted: ', team) as name 9 | FROM league 10 | WHERE position >= 14 11 | ) -------------------------------------------------------------------------------- /Sql/URI 2741.sql: -------------------------------------------------------------------------------- 1 | SELECT concat('Approved: ', name) as name, grade 2 | FROM students 3 | WHERE grade >= 7 4 | ORDER BY grade DESC -------------------------------------------------------------------------------- /Sql/URI 2742.sql: -------------------------------------------------------------------------------- 1 | SELECT l.name, round((l.omega * 1.618), 3) AS "Fator N" 2 | FROM life_registry l JOIN dimensions d ON 3 | l.dimensions_id = d.id 4 | WHERE d.name in ('C875', 'C774') AND l.name LIKE 'Richard%' 5 | ORDER BY l.omega ASC -------------------------------------------------------------------------------- /Sql/URI 2743.sql: -------------------------------------------------------------------------------- 1 | SELECT name, char_length(name) AS length 2 | FROM people 3 | ORDER BY length DESC -------------------------------------------------------------------------------- /Sql/URI 2744.sql: -------------------------------------------------------------------------------- 1 | SELECT id, password, MD5(password) AS MD5 2 | FROM account -------------------------------------------------------------------------------- /Sql/URI 2745.sql: -------------------------------------------------------------------------------- 1 | SELECT name, round((salary * 0.10), 2) AS tax 2 | FROM people 3 | WHERE salary > 3000 4 | 5 | --------- OUTRA POSSIVEL SOLUÇÃO ----------- 6 | 7 | SELECT name, round(((salary * 10) / 100), 2) AS tax 8 | FROM people 9 | WHERE salary > 3000 -------------------------------------------------------------------------------- /Sql/URI 2746.sql: -------------------------------------------------------------------------------- 1 | SELECT replace(name, 'H1', 'X') AS name 2 | FROM virus -------------------------------------------------------------------------------- /Sql/URI 2990.sql: -------------------------------------------------------------------------------- 1 | SELECT e.cpf, e.enome, d.dnome 2 | FROM departamentos d INNER JOIN empregados e ON d.dnumero = e.dnumero 3 | LEFT JOIN trabalha t ON t.cpf_emp = e.cpf 4 | LEFT JOIN projetos p ON t.pnumero = p.pnumero 5 | WHERE p.pnumero IS NULL 6 | ORDER BY e.cpf -------------------------------------------------------------------------------- /Sql/URI 2993.sql: -------------------------------------------------------------------------------- 1 | SELECT amount 2 | FROM value_table 3 | GROUP BY amount 4 | ORDER BY count(amount) DESC 5 | LIMIT 1 -------------------------------------------------------------------------------- /Sql/URI 2994.sql: -------------------------------------------------------------------------------- 1 | SELECT d.name, round(sum((a.hours * 150.0) + (((a.hours * 150.0) * w.bonus) / 100.0)), 1) as salary 2 | FROM doctors d INNER JOIN attendances a ON d.id = a.id_doctor 3 | INNER JOIN work_shifts w ON w.id = a.id_work_shift 4 | GROUP BY d.id 5 | ORDER BY salary DESC -------------------------------------------------------------------------------- /Sql/URI 3001.sql: -------------------------------------------------------------------------------- 1 | SELECT name, CASE WHEN type = 'A' THEN 20.0 WHEN type = 'B' THEN 70.0 ELSE 530.5 END AS price 2 | FROM products 3 | ORDER BY price ASC, id DESC -------------------------------------------------------------------------------- /Sql/URI 3480.sql: -------------------------------------------------------------------------------- 1 | SELECT x.queue, x.left, x.right 2 | FROM ( 3 | SELECT queue, id as "left", available as "left_available", LEAD(id, 1) OVER(PARTITION BY queue) as "right", LEAD(available, 1) OVER(PARTITION BY queue) as "right_available" 4 | FROM chairs 5 | ) as x -------------------------------------------------------------------------------- /Strings/URI 1024.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Strings/URI 1024.java -------------------------------------------------------------------------------- /Strings/URI 1120.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Strings/URI 1120.java -------------------------------------------------------------------------------- /Strings/URI 1168.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Strings/URI 1168.java -------------------------------------------------------------------------------- /Strings/URI 1222.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Strings/URI 1222.java -------------------------------------------------------------------------------- /Strings/URI 1234.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Strings/URI 1234.java -------------------------------------------------------------------------------- /Strings/URI 1235.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Strings/URI 1235.java -------------------------------------------------------------------------------- /Strings/URI 1238.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Strings/URI 1238.java -------------------------------------------------------------------------------- /Strings/URI 1239.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Strings/URI 1239.java -------------------------------------------------------------------------------- /Strings/URI 1241.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Strings/URI 1241.java -------------------------------------------------------------------------------- /Strings/URI 1243.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Strings/URI 1243.java -------------------------------------------------------------------------------- /Strings/URI 1248.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Strings/URI 1248.java -------------------------------------------------------------------------------- /Strings/URI 1272.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Strings/URI 1272.java -------------------------------------------------------------------------------- /Strings/URI 1367.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Strings/URI 1367.java -------------------------------------------------------------------------------- /Strings/URI 1898.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Strings/URI 1898.java -------------------------------------------------------------------------------- /Strings/URI 2062.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eduardo-mior/URI-Online-Judge-Solutions/e195f4080ae4e7e71e381a9623d4baaaffa023e5/Strings/URI 2062.java --------------------------------------------------------------------------------