QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#879162#9699. Loving You in My Humble Wayucup-team296#WA 191ms44880kbKotlin352b2025-02-01 21:40:352025-02-01 21:40:37

Judging History

This is the latest submission verdict.

  • [2025-02-01 21:40:37]
  • Judged
  • Verdict: WA
  • Time: 191ms
  • Memory: 44880kb
  • [2025-02-01 21:40:35]
  • Submitted

answer

fun main() {
    val ps = intArrayOf(1, 7, 13, 19, 25, 31, 37, 43, 49, 55, 61, 67, 73, 79)
    val k = 1893
    val t = (k - 1) / 2
    println(t * ps.size)
    for (p in ps) {
        val a = IntArray(k) { i -> (i * p) % k + 1 }
        for (j in 0..<t) {
            println("${a[2 * j]} ${a[2 * j + 1]} ${a[2 * j + 2]}")
        }
    }
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 191ms
memory: 44880kb

input:

<no-input>

output:

13244
1 2 3
3 4 5
5 6 7
7 8 9
9 10 11
11 12 13
13 14 15
15 16 17
17 18 19
19 20 21
21 22 23
23 24 25
25 26 27
27 28 29
29 30 31
31 32 33
33 34 35
35 36 37
37 38 39
39 40 41
41 42 43
43 44 45
45 46 47
47 48 49
49 50 51
51 52 53
53 54 55
55 56 57
57 58 59
59 60 61
61 62 63
63 64 65
65 66 67
67 68 69
6...

result:

wrong answer Invalid graph.