难道说是因为input读取不了换行符吗 或者读取换行符就终止了? 那终止了怎么还能通过那么多输入呢

1 comments

  • @ 2024-4-12 8:30:23

    是的没错,换行符和空格都读取不了,在未给出读入次数时,用getline(cin,x);读取整行,或者用while(cin>>n)多次读入

    • 1

    Information

    ID
    10
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    4
    Tags
    # Submissions
    1146
    Accepted
    563
    Uploaded By