sol_lacosimples_soma_ate_digitar_0.ivph 2.7 KB

1
  1. {"mapping":{"2":{"id":2,"type":"write","name":"escrever","nodes":[],"parent":"root_0","variable":"var1","$$hashKey":"1AR"},"while_1":{"id":"while_1","type":"while","name":"enquanto","nodes":[{"id":"read_2","type":"read","name":"ler","nodes":[],"parent":"while_1","message":"Por favor digite um valor:","variable":"var0","$$hashKey":"0GW"},{"id":"attr_4","type":"attr","name":"attr","parent":"while_1","variable":"var1","exp":[{"t":"exp","v":[{"t":"var","v":"var1","$$hashKey":"0HH"},{"t":"op","v":"+","$$hashKey":"0PR"},{"t":"var","v":"var0","$$hashKey":"10W"}],"$$hashKey":"0HH"}],"isLocked":false,"$$hashKey":"0H9"}],"parent":"root_0","exp":[{"t":"expB","v":[{"t":"var","v":"var0","$$hashKey":"03H"},{"t":"opB","v":"!=","$$hashKey":"03Q"},{"t":"val","v":"0","$$hashKey":"03Z"}],"$$hashKey":"01X"}],"isChildrenVisible":true,"$$hashKey":"01R"},"read_2":{"id":"read_2","type":"read","name":"ler","nodes":[],"parent":"while_1","message":"Por favor digite um valor:","variable":"var0","$$hashKey":"0GW"},"attr_4":{"id":"attr_4","type":"attr","name":"attr","parent":"while_1","variable":"var1","exp":[{"t":"exp","v":[{"t":"var","v":"var1","$$hashKey":"0HH"},{"t":"op","v":"+","$$hashKey":"0PR"},{"t":"var","v":"var0","$$hashKey":"10W"}],"$$hashKey":"0HH"}],"isLocked":false,"$$hashKey":"0H9"}},"src":{"programName":"firstProgram","functions":[{"isMain":true,"name":"Principal","vars":{"var0":{"name":"x","type":"int","initialValue":1,"id":"var0","$$hashKey":"00D"},"var1":{"name":"s","type":"int","initialValue":"0","id":"var1","$$hashKey":"00H"}},"params":{},"type":"main","nodes":[{"id":"while_1","type":"while","name":"enquanto","nodes":[{"id":"read_2","type":"read","name":"ler","nodes":[],"parent":"while_1","message":"Por favor digite um valor:","variable":"var0","$$hashKey":"0GW"},{"id":"attr_4","type":"attr","name":"attr","parent":"while_1","variable":"var1","exp":[{"t":"exp","v":[{"t":"var","v":"var1","$$hashKey":"0HH"},{"t":"op","v":"+","$$hashKey":"0PR"},{"t":"var","v":"var0","$$hashKey":"10W"}],"$$hashKey":"0HH"}],"isLocked":false,"$$hashKey":"0H9"}],"parent":"root_0","exp":[{"t":"expB","v":[{"t":"var","v":"var0","$$hashKey":"03H"},{"t":"opB","v":"!=","$$hashKey":"03Q"},{"t":"val","v":"0","$$hashKey":"03Z"}],"$$hashKey":"01X"}],"isChildrenVisible":true,"$$hashKey":"01R"},{"id":2,"type":"write","name":"escrever","nodes":[],"parent":"root_0","variable":"var1","$$hashKey":"1AR"}],"$$hashKey":"006"}]},"testCases":[{"input":"0","output":"0","currentIndex":1,"$$hashKey":"008"},{"input":"1 0","output":"1","currentIndex":2,"$$hashKey":"00A"},{"input":"1 2 3 4 5 0","output":"15","currentIndex":6,"$$hashKey":"00C"},{"input":"1 -1 2 -1 3 -1 4 -1 5 -1 0","output":"10","currentIndex":11,"$$hashKey":"00E"},{"input":"1 -1 1 -1 1 -1 0","output":"0","currentIndex":7,"$$hashKey":"00G"}]}