Submit solution

Points: 100.00 (partial)
Time limit: 1.0s
Memory limit: 256M
Input: stdin
Output: stdout

Problem type

In case the statement didn't load correctly, you can download the statement here: Statement


Comments

Please read the guidelines before commenting.



  • -1
    25A-357   commented on April 19, 2025, 9:53 a.m.

    Test case #1: Runtime Error (segmentation fault) [0.495s, 1.64 MB] (0/1) Test case #2: Runtime Error (segmentation fault) [0.328s, 1.65 MB] (0/1) Test case #3: Runtime Error (segmentation fault) [0.333s, 1.64 MB] (0/1) Test case #4: Runtime Error (segmentation fault) [0.294s, 1.66 MB] (0/1) Test case #5: Runtime Error (segmentation fault) [0.355s, 1.64 MB] (0/1) Test case #6: Runtime Error (segmentation fault) [0.314s, 1.65 MB] (0/1) Test case #7: Runtime Error (segmentation fault) [0.311s, 1.65 MB] (0/1) Test case #8: Runtime Error (segmentation fault) [0.304s, 1.64 MB] (0/1) Test case #9: Runtime Error (segmentation fault) [0.298s, 1.64 MB] (0/1) Test case #10: Runtime Error (segmentation fault) [0.321s, 1.65 MB] (0/1) Test case #11: Runtime Error (segmentation fault) [0.336s, 1.64 MB] (0/1) Test case #12: Runtime Error (segmentation fault) [0.343s, 1.65 MB] (0/1) Test case #13: Runtime Error (segmentation fault) [0.310s, 1.65 MB] (0/1) Test case #14: Runtime Error (segmentation fault) [0.336s, 1.65 MB] (0/1) Test case #15: Runtime Error (segmentation fault) [0.349s, 1.65 MB] (0/1) Test case #16: Runtime Error (segmentation fault) [0.335s, 1.65 MB] (0/1) Test case #17: Runtime Error (segmentation fault) [0.343s, 1.65 MB] (0/1) Test case #18: Runtime Error (segmentation fault) [0.349s, 1.64 MB] (0/1) Test case #19: Runtime Error (segmentation fault) [0.273s, 1.64 MB] (0/1) Test case #20: Runtime Error (segmentation fault) [0.283s, 1.64 MB] (0/1) Test case #21: Runtime Error (segmentation fault) [0.273s, 1.63 MB] (0/1) Test case #22: Runtime Error (segmentation fault) [0.335s, 1.65 MB] (0/1) Test case #23: Runtime Error (segmentation fault) [0.299s, 1.65 MB] (0/1) Test case #24: Runtime Error (segmentation fault) [0.327s, 1.64 MB] (0/1) Test case #25: Runtime Error (segmentation fault) [0.271s, 1.65 MB] (0/1) Test case #26: Runtime Error (segmentation fault) [0.297s, 1.64 MB] (0/1) Test case #27: Runtime Error (segmentation fault) [0.306s, 1.64 MB] (0/1) Test case #28: Runtime Error (segmentation fault) [0.345s, 1.71 MB] (0/1) Test case #29: Runtime Error (segmentation fault) [0.334s, 1.65 MB] (0/1) Test case #30: Runtime Error (segmentation fault) [0.270s, 1.64 MB] (0/1) Test case #31: Runtime Error (segmentation fault) [0.246s, 1.63 MB] (0/1) Test case #32: Runtime Error (segmentation fault) [0.297s, 1.65 MB] (0/1) Test case #33: Runtime Error (segmentation fault) [0.333s, 1.65 MB] (0/1) Test case #34: Runtime Error (segmentation fault) [0.311s, 1.65 MB] (0/1) Test case #35: Runtime Error (segmentation fault) [0.330s, 1.64 MB] (0/1) Test case #36: Runtime Error (segmentation fault) [0.353s, 1.65 MB] (0/1) Test case #37: Runtime Error (segmentation fault) [0.374s, 1.71 MB] (0/1) Test case #38: Runtime Error (segmentation fault) [0.359s, 1.65 MB] (0/1) Test case #39: Runtime Error (segmentation fault) [0.355s, 1.64 MB] (0/1) Test case #40: Runtime Error (segmentation fault) [0.343s, 1.64 MB] (0/1) Test case #41: Runtime Error (segmentation fault) [0.351s, 1.65 MB] (0/1) Test case #42: Runtime Error (segmentation fault) [0.332s, 1.65 MB] (0/1) Test case #43: Runtime Error (segmentation fault) [0.322s, 1.65 MB] (0/1) Test case #44: Runtime Error (segmentation fault) [0.317s, 1.65 MB] (0/1) Test case #45: Runtime Error (segmentation fault) [0.320s, 1.65 MB] (0/1) Test case #46: Runtime Error (segmentation fault) [0.311s, 1.64 MB] (0/1) Test case #47: Runtime Error (segmentation fault) [0.289s, 1.65 MB] (0/1) Test case #48: Runtime Error (segmentation fault) [0.308s, 1.65 MB] (0/1) Test case #49: Runtime Error (segmentation fault) [0.292s, 1.65 MB] (0/1) Test case #50: Runtime Error (segmentation fault) [0.287s, 1.64 MB] (0/1) Test case #51: Runtime Error (segmentation fault) [0.292s, 1.65 MB] (0/1) Test case #52: Runtime Error (segmentation fault) [0.280s, 1.65 MB] (0/1) Test case #53: Runtime Error (segmentation fault) [0.277s, 1.71 MB] (0/1) Test case #54: Runtime Error (segmentation fault) [0.278s, 1.64 MB] (0/1) Test case #55: Runtime Error (segmentation fault) [0.279s, 1.71 MB] (0/1) Test case #56: Runtime Error (segmentation fault) [0.308s, 1.65 MB] (0/1) Test case #57: Runtime Error (segmentation fault) [0.318s, 1.64 MB] (0/1) Test case #58: Runtime Error (segmentation fault) [0.313s, 1.65 MB] (0/1) Test case #59: Runtime Error (segmentation fault) [0.307s, 1.65 MB] (0/1) Test case #60: Runtime Error (segmentation fault) [0.312s, 1.65 MB] (0/1) Test case #61: Runtime Error (segmentation fault) [0.277s, 1.71 MB] (0/1) Test case #62: Runtime Error (segmentation fault) [0.311s, 1.65 MB] (0/1) Test case #63: Runtime Error (segmentation fault) [0.233s, 1.65 MB] (0/1) Test case #64: Runtime Error (segmentation fault) [0.243s, 1.63 MB] (0/1) Test case #65: Runtime Error (segmentation fault) [0.271s, 1.64 MB] (0/1) Test case #66: Runtime Error (segmentation fault) [0.263s, 1.65 MB] (0/1) Test case #67: Runtime Error (segmentation fault) [0.256s, 1.65 MB] (0/1) Test case #68: Runtime Error (segmentation fault) [0.251s, 1.65 MB] (0/1) Test case #69: Runtime Error (segmentation fault) [0.311s, 1.65 MB] (0/1) Test case #70: Runtime Error (segmentation fault) [0.292s, 1.64 MB] (0/1) Test case #71: Runtime Error (segmentation fault) [0.292s, 1.65 MB] (0/1) Test case #72: Runtime Error (segmentation fault) [0.290s, 1.64 MB] (0/1) Test case #73: Runtime Error (segmentation fault) [0.337s, 1.63 MB] (0/1) Test case #74: Runtime Error (segmentation fault) [0.319s, 1.65 MB] (0/1) Test case #75: Runtime Error (segmentation fault) [0.335s, 1.65 MB] (0/1) Test case #76: Runtime Error (segmentation fault) [0.289s, 1.65 MB] (0/1) Test case #77: Runtime Error (segmentation fault) [0.274s, 1.64 MB] (0/1) Test case #78: Runtime Error (segmentation fault) [0.306s, 1.64 MB] (0/1) Test case #79: Runtime Error (segmentation fault) [0.306s, 1.65 MB] (0/1) Test case #80: Runtime Error (segmentation fault) [0.283s, 1.65 MB] (0/1) Test case #81: Runtime Error (segmentation fault) [0.364s, 1.71 MB] (0/1) Test case #82: Runtime Error (segmentation fault) [0.360s, 1.65 MB] (0/1) Test case #83: Runtime Error (segmentation fault) [0.285s, 1.65 MB] (0/1) Test case #84: Runtime Error (segmentation fault) [0.293s, 1.65 MB] (0/1) Test case #85: Runtime Error (segmentation fault) [0.283s, 1.65 MB] (0/1) Test case #86: Runtime Error (segmentation fault) [0.317s, 1.65 MB] (0/1) Test case #87: Runtime Error (segmentation fault) [0.335s, 1.65 MB] (0/1) Test case #88: Runtime Error (segmentation fault) [0.318s, 1.64 MB] (0/1) Test case #89: Runtime Error (segmentation fault) [0.293s, 1.65 MB] (0/1) Test case #90: Runtime Error (segmentation fault) [0.367s, 1.65 MB] (0/1) Test case #91: Runtime Error (segmentation fault) [0.385s, 1.65 MB] (0/1) Test case #92: Runtime Error (segmentation fault) [0.371s, 1.65 MB] (0/1) Test case #93: Runtime Error (segmentation fault) [0.328s, 1.65 MB] (0/1) Test case #94: Runtime Error (segmentation fault) [0.350s, 1.65 MB] (0/1) Test case #95: Runtime Error (segmentation fault) [0.329s, 1.71 MB] (0/1) Test case #96: Runtime Error (segmentation fault) [0.345s, 1.63 MB] (0/1) Test case #97: Runtime Error (segmentation fault) [0.344s, 1.65 MB] (0/1) Test case #98: Runtime Error (segmentation fault) [0.319s, 1.64 MB] (0/1) Test case #99: Runtime Error (segmentation fault) [0.297s, 1.71 MB] (0/1) Test case #100: Runtime Error (segmentation fault) [0.346s, 1.65 MB] (0/1)????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????


  • -2
    KVMB23A_67   commented on April 16, 2025, 10:35 p.m.

    có ae nào if test bài này ko, tôi nghĩ khả thi đấy


  • -2
    Tuan34234   commented on April 16, 2025, 9:10 p.m.

    Mnguoi làm kiểu gì mà AC đc ảo thế


  • -2
    khoasadnhan   commented on April 15, 2025, 9:36 p.m.

    14/100 test import random print(random.randint(0,9))


  • -2
    phamquanghuy2016   commented on April 12, 2025, 9:39 a.m.

    chả hiểu gì


    • -2
      khanhs_2k14   commented on April 15, 2025, 6:40 p.m.

      ok


    • -2
      khanhs_2k14   commented on April 15, 2025, 8:38 a.m.

      minhf goiwj ys nhes bạn tạo 10 bài scratch nói từ 0-9(ko random và mỗi bài 1 số)nộp cả 10 bài lên bạn xem bài nói 0 đúng bao nhiêu rồi ghi ra bài nói 1 đúng bao nhiêu ghi các tét đúng ra ... đến hết tét 9 bạn tạo dự án mới tạo danh sách dùng thêm phân tử (số) vô ds VD: mục 0 có 5 thì ghi thêm phần tử 0 tại vt 5 của danh sách dùng nói pt thứ vt ko cần đặt vị trí = 0 thay đổi vt 1


  • -2
    phamquanghuy2016   commented on April 12, 2025, 9:32 a.m.


  • -1
    Nglinh_2k14   commented on April 11, 2025, 2:22 p.m.

    tui có cách làm trên scratch đc 10 test Khi bấm vào cờ xanh hỏi... và đợi nói 5


  • -2
    khanhs_2k14   commented on April 11, 2025, 10:25 a.m.

    https://scratch.mit.edu/projects/1160378741/editor


  • -1
    khanhs_2k14   commented on April 11, 2025, 10:23 a.m.

    hơi sai sai á linh??? dc 9 test thui


  • -2
    Nglinh_2k14   commented on April 11, 2025, 10:19 a.m.

    lần đầu đc 15 test rồi 😊


  • -2
    Nglinh_2k14   commented on April 11, 2025, 8:08 a.m.

    khanhs_2k14 chia sẻ bài scratch đi


  • -2
    khanhs_2k14   commented on April 10, 2025, 5:15 p.m.

    tui 14 lần ngay lần đầu tiên:))


  • -3
    khanhs_2k14   commented on April 9, 2025, 3:26 p.m.

    random vì chưa ai làm đc :))


  • -2
    maiducninh   commented on April 6, 2025, 8:35 p.m.

    sau 1 tuần random thì lần nhiều nhất là 16 test case


    • -2
      khanhs_2k14   commented on April 11, 2025, 3:33 p.m. edited

      tui 2 ngày random dc 17 test AC


  • -2
    minhtruong26   commented on April 5, 2025, 7:07 p.m.

    lần hai mình dùng random randit ngẫu nhiên từ 4-5 thôi mà dúng 11 test


  • -2
    minhtruong26   commented on April 5, 2025, 7:05 p.m.

    mình dùng random randit đúng 7 test


  • -2
    phong5b_2014   commented on March 21, 2025, 8:18 a.m.

    random ik tui đúng 11 test


  • -2
    SK23A_367   commented on March 18, 2025, 8:58 p.m. edited

    using neural network and black/white colors, maybe C++ can handle this


    • -2
      thebigrizzler123provip   commented on March 28, 2025, 8:05 p.m.

      hell nah it requires a lib that the judge doesn't have which is

      NEURAL NETWORK


  • -2
    truongphat   commented on Feb. 12, 2025, 8:37 p.m. edited

    minh nghi la chung ta nen dung random, xet them 1 vai truong hop co the ra 2 so nx la xong


  • 5
    hollowpurple   commented on Jan. 1, 2025, 7:09 p.m. edited

    lam theo may man:

    import random
    print(random.randint(0,9))
    

  • 1
    truongphat   commented on Nov. 30, 2024, 6:48 a.m.

    100 test case lỗi thời gian


  • -13
    truongphat   commented on Nov. 30, 2024, 6:47 a.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


  • -2
    HungVNBN   commented on Nov. 26, 2024, 7:37 p.m.

    Cái này chắc phải dùng mạng neural, tui dù mới học thôi nhưng tui nghĩ nó khả quan


    • -2
      tinhoctredtsd   commented on Feb. 11, 2025, 9:18 a.m.

      hoặc là scratch,vẽ hình ra rồi cho xem trang phục nào khớp


  • -2
    kietjumper   commented on Nov. 15, 2024, 10:57 a.m.

    print(9)

    → Code 10/100 =))


  • -2
    _chanhhao   commented on Nov. 10, 2024, 9:38 p.m. edited

    xài AI cũng có 10/100, thật sự là bài này khó thật, không biết do tôi không hiểu bài hay bài này khó quá. Nói chung là ai có đáp án cho tôi xin về đọc :)


  • -2
    truongphat   commented on Nov. 9, 2024, 5:38 a.m.

    print()


  • -2
    kietjumper   commented on Aug. 21, 2024, 4:13 p.m.

    Hết cứu rồi mn ơi :((


  • -2
    Phuc_NguyenDinh   commented on Aug. 16, 2024, 9:24 a.m.

    Làm thế nào nhỉ?


  • -2
    KVMB23A_67   commented on July 10, 2024, 3:02 p.m.

    tỉ lệ để random được 100 test là (1/10)^100


  • -2
    KV24A_240   commented on July 9, 2024, 9:53 p.m.

    Có ai có thể gửi file code cho tôi về học đc ko?


  • -2
    KV24A_240   commented on July 9, 2024, 8:44 p.m.

    Bài này xài Scratch đc ko vậy mọi người?


    • -2
      KVMB23A_67   commented on Aug. 27, 2024, 8:17 a.m. edited

      "dc, chứ"


      • -2
        KV24A_240   commented on Oct. 10, 2024, 11:21 a.m.

        vậy bạn gửi giúp tôi với


        • -2
          KVMB23A_67   commented on Oct. 10, 2024, 3:57 p.m.

          mik cho vào "" rồi đó bạn


          • -2
            KV24A_240   commented on Nov. 16, 2024, 5:43 p.m.

            là sao vậy? Nếu bạn có tài khoản scratch thì chia sẻ và nói cho mình biết tên tài khoản của bạn để mình xem! :)


            • -2
              KVMB23A_67   commented on Nov. 18, 2024, 8:20 p.m.

              đùa thôi :))))))


              • -2
                KV24A_240   commented on Nov. 25, 2024, 7:40 p.m.

                Brrr... Đùa quá không hay nha bạn!


  • -2
    KV24A_240   commented on July 9, 2024, 8:42 p.m.

    Cứu với, ko biết cách giải


    • -2
      kienngu   commented on April 9, 2025, 5:59 p.m.

      dùng mạng neuron á bn


  • -2
    songvu1234567890   commented on July 4, 2024, 2:49 p.m.

    bài này làm sao vậy dùng random à


  • -2
    lequangbach2015   commented on July 1, 2024, 8:58 a.m.

    Anyone who accomplish this is infinite IQ.


  • -7
    Duc_bloxfruit   commented on June 30, 2024, 9:24 p.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


  • -2
    testaccount_K   commented on June 20, 2024, 4:29 p.m.

    bài này tôi nghĩ chắc phải dùng mạng lưới neuron 🤔


  • -2
    tamduc   commented on June 18, 2024, 10:47 a.m.

    mọi người toàn nói tiếng anh à tôi ko biết gì hết nhưng tôi có google dịch he


  • -2
    tamduc   commented on June 18, 2024, 10:46 a.m.

    oh toàn tiếng anh là chính


  • -2
    auq3l_450   commented on June 16, 2024, 7:43 p.m. edited

    Tỉ lệ xuất hiện các con số và thuật toán random (cho những ai cần): (\n) Tỉ lệ xuất hiện: Mỗi số xuất hiện 10 lần 0_o (\n) Random: Tùy vào tỉ lệ, dùng hết may mắn của năm thì 100 còn xui nhất sv thì 0=)))) (2 -> 16 (11 Submissions) for me)


    • -2
      phanquanganh   commented on June 20, 2024, 3:49 p.m.

      12 Submissions


      • -2
        auq3l_450   commented on June 20, 2024, 4:04 p.m.

        chỉ có 11 cái là mình dùng random nên mình ghi vậy nha bạn


  • -5
    SK24_B69   commented on June 14, 2024, 7:59 p.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


  • -1
    minhtht   commented on June 14, 2024, 7:46 a.m.

    ?how


  • -19
    thanhphong   commented on June 8, 2024, 7:40 p.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


    • -1
      SK23A_2008   commented on Nov. 19, 2024, 10:17 p.m.

      and it harder than anything harder the space


  • -1
    SK23B_553   commented on June 8, 2024, 11:25 a.m.

    I found this module called skikit-learn but we cannot use modules so...


  • -5
    SK23B_553   commented on June 8, 2024, 11:21 a.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


  • 3
    Quangnt   commented on June 4, 2024, 10:07 p.m.

    how


  • -5
    KPKTuan   commented on May 25, 2024, 9:37 p.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


  • -1
    thanhhuyen2014   commented on May 21, 2024, 10:25 a.m.

    what


  • -29
    SK23A_1567   commented on Oct. 16, 2023, 9:06 p.m.

    This comment is hidden due to too much negative feedback. Show it anyway.