Skip to content

Commit a5b0b13

Browse files
committed
gitignore add
1 parent 4dcb20a commit a5b0b13

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.DS_Store
2+
*.idea/

Uri-online-judge/.DS_Store

-2 KB
Binary file not shown.

Uri-online-judge/1013/1013.go

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package main
2+
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

Comments
 (0)