Submission #3435727


Source Code Expand

package main

import "fmt"

func main() {
	var a, b, c int
	fmt.Scan(&a, &b, &c)
	ans := 1

	for _, v := range []int{a, b, c} {
		ans = (ans * v) % (pow(10, 9) + 7)
	}
	fmt.Println(ans)
}

func pow(l, i int) int {
	var result = 1
	for j := 0; j < i; j++ {
		result *= l
	}
	return result
}

Submission Info

Submission Time
Task B - 直方体
User ToshiroYanagi
Language Go (1.6)
Score 100
Code Size 312 Byte
Status AC
Exec Time 1 ms
Memory 512 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 4
AC × 9
Set Name Test Cases
Sample 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt
All 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt
Case Name Status Exec Time Memory
0_00.txt AC 1 ms 512 KB
0_01.txt AC 1 ms 512 KB
0_02.txt AC 1 ms 512 KB
0_03.txt AC 1 ms 512 KB
1_00.txt AC 1 ms 512 KB
1_01.txt AC 1 ms 512 KB
1_02.txt AC 1 ms 512 KB
1_03.txt AC 1 ms 512 KB
1_04.txt AC 1 ms 512 KB