Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

SPyofgame's blog

By SPyofgame, history, 7 years ago, In English

I dont know how to use Template for multiple input. Can you help me ?

Fast Input Code

Sorry for my bad English. Correct me if I am wrong.

Thanks for reading <3

  • Vote: I like it
  • -25
  • Vote: I do not like it

| Write comment?
»
7 years ago, hide # |
 
Vote: I like it +10 Vote: I do not like it
For versions >= C++14
Or like this
  • »
    »
    7 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Int the first template:

    My test code
    It shows in the terminal
    Input
    Output
  • »
    »
    7 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Int the second template:

    My test code
    It shows in the terminal
    Input
    Output
  • »
    »
    7 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    What happened ;-; ? I use vscode

  • »
    »
    7 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    Run code in CUSTOM TEST doesnt work too

»
7 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

The bug is in your original read_int

Both of these work fine.

First template
Second template