1 solutions

  • 0
    @ 2025-11-5 18:17:35

    C++ :

    #include <stdio.h>
    const int a[] = {0, 1, 499122178, 2, 915057326, 540715694, 946945688, 422867403, 451091574, 317868537, 200489273, 976705134, 705376344, 662845575, 331522185, 228644314, 262819964, 686801362, 495111839, 947040129, 414835038, 696340671, 749077581, 301075008, 314644758, 102117126, 819818153, 273498600, 267588741};
    int n;
    int main()
    {
    	scanf("%d", &n);
    	printf("%d\n", a[n]);
    	return 0;
    }
    
    
    • 1

    Information

    ID
    18840
    Time
    1000ms
    Memory
    512MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By