js怎么解题,php怎么解题

P1001 A+B Problem

linmaozi @ 2023-11-07 20:21:10


by OIerWu_829 @ 2023-11-07 20:33:56

借帖子已用:文言咋写?


by zqh123b @ 2023-11-07 20:39:11

@linmaozi 什么意思? 有S组大佬用AStar过了


by jqQt0220 @ 2023-11-07 20:39:55

@wzj0829 bdfs(似乎洛谷已经不支持文言了)


by linmaozi @ 2023-11-07 20:49:19

我以为有JavaScript的环境,就能用JavaScript写题了。


by E303 @ 2023-12-09 20:52:39

@linmaozi php这样写:

<?php
$input = trim(file_get_contents("php://stdin"));
list($a, $b) = explode(' ', $input);
echo $a + $b;

|