http://codeforces.me/contest/118/problem/B
how can I remove the extra space at the end of each line in python?
I tried in two ways but both of them are producing the wrong result due to extra space at the end.
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 3993 |
2 | jiangly | 3743 |
3 | orzdevinwang | 3707 |
4 | Radewoosh | 3627 |
5 | jqdai0815 | 3620 |
6 | Benq | 3564 |
7 | Kevin114514 | 3443 |
8 | ksun48 | 3434 |
9 | Rewinding | 3397 |
10 | Um_nik | 3396 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 155 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
10 | nor | 152 |
http://codeforces.me/contest/118/problem/B
how can I remove the extra space at the end of each line in python?
I tried in two ways but both of them are producing the wrong result due to extra space at the end.
I tried googling but no luck.
#### when running test cases on the IntelliJ idea using CHELPER it gives me this error Verdict: Presentation Error (More than 0 tokens expected)
"C:\Program Files\Java\jdk1.8.0_111\bin\java" -Xmx256M -Xss8M "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2017.3.2\lib\idea_rt.jar=48151:C:\Program Files\JetBrains\IntelliJ IDEA 2017.3.2\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_111\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_111\jre\lib\rt.jar;C:\Users\Vishal\IdeaProjects\Code\out\production\Code;C:\Users\Vishal.IntelliJIdea2017.3\config\plugins\chelper.jar;C:\Users\Vishal\Desktop\lib\cojac.jar;C:\Users\Vishal\Desktop\lib\chelper.jar" net.egork.chelper.tester.NewTester "src/Demo/Problem A — Soft Drinking.task"
Test #0: Input: 3 4 5 10 8 100 3 1
Expected output: 2
Execution result: 2
Test #1: Input: 5 100 10 1 19 90 4 3
Expected output: 3
Execution result: 3
Test #2: Input: 10 1000 1000 25 23 1 50 1
Expected output: 0
Execution result: 0
================================================================== Test results: Test #0: Presentation Error (More than 0 tokens expected) Test #1: Presentation Error (More than 0 tokens expected) Test #2: Presentation Error (More than 0 tokens expected)
Process finished with exit code 0
I read in a several years old post by MikeMirzayanov that the processor used to judge solutions is Intel® Core™2 Duo Processor E6750. I wonder what processor is currently being used for judging the solutions.
Название |
---|