We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dcb20a commit a5b0b13Copy full SHA for a5b0b13
.gitignore
@@ -0,0 +1,2 @@
1
+*.DS_Store
2
+*.idea/
Uri-online-judge/.DS_Store
-2 KB
Uri-online-judge/1013/1013.go
@@ -0,0 +1,20 @@
+package main
+
3
+import (
4
+ "fmt"
5
+ "math"
6
+)
7
8
+func main(){
9
+ var a,b,c int64
10
+ var mar float64
11
+ fmt.Scan(&a)
12
+ fmt.Scan(&b)
13
+ fmt.Scan(&c)
14
15
+ absvalue := math.Abs(float64(int64(a))-float64(int64(b)))
16
+ mar = (float64(int64(a))+float64(int64(b))+absvalue)/2
17
+ maior :=(mar+float64(int64(c))+math.Abs(mar-float64(int64(c))))/2;
18
+ newv := int64(maior)
19
+ fmt.Printf("%d eh o maior\n", newv)
20
+}
0 commit comments