Submission #3435685


Source Code Expand

fun main(args: Array<String>) {
	val (a, b, c) = readLine()!!.split(' ').map { it.toLong() }
	var ans = 1L

	for (v in arrayOf(a, b, c)) {
		ans = (ans * v) % (pow(10, 9) + 7)
	}
	println(ans)
}

fun pow(l: Long, i: Int): Long {
	var result = 1L
	for (j in 0 until i) {
		result *= l
	}
	return result
}

Submission Info

Submission Time
Task B - 直方体
User ToshiroYanagi
Language Kotlin (1.0.0)
Score 100
Code Size 321 Byte
Status AC
Exec Time 232 ms
Memory 38068 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 232 ms 34340 KB
0_01.txt AC 232 ms 36512 KB
0_02.txt AC 231 ms 36168 KB
0_03.txt AC 230 ms 36260 KB
1_00.txt AC 230 ms 36076 KB
1_01.txt AC 230 ms 36284 KB
1_02.txt AC 232 ms 38068 KB
1_03.txt AC 231 ms 36256 KB
1_04.txt AC 232 ms 34456 KB