Submission #7060411


Source Code Expand

Copy
package main

import (
	"fmt"
)

var (
	n int
	t [1000*1000*1000 + 100]bool
	a int32
)

func main() {

	fmt.Scan(&n)
	ans := 0
	found := false

	for i := 0; i < n; i++ {
		fmt.Scan(&a)
		found = false
		for true {
			if t[a] != false {
				found = true
			}
			t[a] = true
			if a%2 == 1 || a <= 0 {
				break
			}
			a /= 2
		}

		if !found {
			ans++
		}
	}
	fmt.Println(0)
}

Submission Info

Submission Time
Task C - 高橋くんと魔法の箱
User stokuda
Language Go (1.6)
Score 0
Code Size 416 Byte
Status
Exec Time 903 ms
Memory 979840 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 subtask0_0.txt, subtask0_1.txt, subtask0_2.txt
Subtask1 0 / 20 subtask1_0.txt, subtask1_1.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask1_14.txt, subtask1_15.txt, subtask1_16.txt, subtask1_17.txt, subtask1_18.txt, subtask1_19.txt, subtask1_2.txt, subtask1_3.txt, subtask1_4.txt, subtask1_5.txt, subtask1_6.txt, subtask1_7.txt, subtask1_8.txt, subtask1_9.txt, subtask0_0.txt, subtask0_1.txt, subtask0_2.txt
Subtask2 0 / 30 subtask2_0.txt, subtask2_1.txt, subtask2_2.txt, subtask2_3.txt, subtask2_4.txt, subtask2_5.txt, subtask2_6.txt, subtask2_7.txt, subtask2_8.txt, subtask2_9.txt, subtask0_0.txt, subtask0_1.txt, subtask0_2.txt
All 0 / 50 subtask0_0.txt, subtask0_1.txt, subtask0_2.txt, subtask1_0.txt, subtask1_1.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask1_14.txt, subtask1_15.txt, subtask1_16.txt, subtask1_17.txt, subtask1_18.txt, subtask1_19.txt, subtask1_2.txt, subtask1_3.txt, subtask1_4.txt, subtask1_5.txt, subtask1_6.txt, subtask1_7.txt, subtask1_8.txt, subtask1_9.txt, subtask2_0.txt, subtask2_1.txt, subtask2_2.txt, subtask2_3.txt, subtask2_4.txt, subtask2_5.txt, subtask2_6.txt, subtask2_7.txt, subtask2_8.txt, subtask2_9.txt, subtask3_0.txt, subtask3_1.txt, subtask3_2.txt, subtask3_3.txt, subtask3_4.txt, subtask3_5.txt, subtask3_6.txt, subtask3_7.txt, subtask3_8.txt, subtask3_9.txt
Case Name Status Exec Time Memory
subtask0_0.txt 1 ms 512 KB
subtask0_1.txt 1 ms 512 KB
subtask0_2.txt 1 ms 512 KB
subtask1_0.txt 13 ms 640 KB
subtask1_1.txt 18 ms 3072 KB
subtask1_10.txt 13 ms 640 KB
subtask1_11.txt 243 ms 827648 KB
subtask1_12.txt 255 ms 864256 KB
subtask1_13.txt 220 ms 898432 KB
subtask1_14.txt 234 ms 923008 KB
subtask1_15.txt 259 ms 973568 KB
subtask1_16.txt 229 ms 971520 KB
subtask1_17.txt 227 ms 971520 KB
subtask1_18.txt 229 ms 973568 KB
subtask1_19.txt 229 ms 973568 KB
subtask1_2.txt 18 ms 3072 KB
subtask1_3.txt 18 ms 3072 KB
subtask1_4.txt 18 ms 2944 KB
subtask1_5.txt 18 ms 2944 KB
subtask1_6.txt 18 ms 3072 KB
subtask1_7.txt 18 ms 2944 KB
subtask1_8.txt 18 ms 2944 KB
subtask1_9.txt 18 ms 3072 KB
subtask2_0.txt 475 ms 5760 KB
subtask2_1.txt 500 ms 7808 KB
subtask2_2.txt 504 ms 7808 KB
subtask2_3.txt 499 ms 7808 KB
subtask2_4.txt 500 ms 7808 KB
subtask2_5.txt 505 ms 7808 KB
subtask2_6.txt 502 ms 7808 KB
subtask2_7.txt 502 ms 7808 KB
subtask2_8.txt 497 ms 7808 KB
subtask2_9.txt 500 ms 7808 KB
subtask3_0.txt 476 ms 5760 KB
subtask3_1.txt 896 ms 979712 KB
subtask3_2.txt 893 ms 979712 KB
subtask3_3.txt 894 ms 979712 KB
subtask3_4.txt 892 ms 979712 KB
subtask3_5.txt 896 ms 979584 KB
subtask3_6.txt 894 ms 979840 KB
subtask3_7.txt 903 ms 979712 KB
subtask3_8.txt 893 ms 979712 KB
subtask3_9.txt 892 ms 979712 KB