![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ZOJ
文章平均质量分 79
蒋小洋
这个作者很懒,什么都没留下…
展开
-
PHP - zoj 1074 To the Max
AC Code <?php// Run Time(ms) 310 // Run Memory(KB) 1228fscanf(STDIN, "%d", $n);$arr = array();$c = 0;$r = 0;while(($strline = fgets(STDIN, 4096)) <> NULL) { $tmp = explode("原创 2011-06-23 17:00:00 · 380 阅读 · 0 评论 -
php - zoj 1115 Digital Roots
AC<?php// Run Time(ms) 10// Run Memory(KB) 212while(fscanf(STDIN,"%s",$integer) <> NULL){ if($integer == 0){ break; } $arr = str_split($integer); $rst = 0; fo原创 2011-06-24 06:49:00 · 327 阅读 · 0 评论 -
php - zoj 1151 Word Reversal
AC<?php// Run Time(ms) 210// Run Memory(KB) 212fscanf(STDIN, "%d", $cb);while($cb--){ fscanf(STDIN, "%s", $blank); fscanf(STDIN, "%d", $cc); for($ii =0; $ii < $cc; $ii++)原创 2011-06-24 07:11:00 · 275 阅读 · 0 评论 -
php C++ - zoj 1180 Self Numbers
AC - C++// Run Time(ms) 1160// Run Memory(KB) 1160#include #include #include using namespace std;int maxDigit = 6;const int NUMBER = 1000001;char arr[NUMBER];void run(int ndigit, i原创 2011-06-24 16:40:00 · 531 阅读 · 0 评论 -
php - zoj 1067 Color Me Less
AC<?php// Run Time(ms) 0// Run Memory(KB) 212$arr = array();for($ii = 0; $ii < 16; $ii++){ fscanf(STDIN, "%d%d%d", $arr[$ii][R], $arr[$ii][G], $arr[$ii][B]);}while( fscanf(STD原创 2011-06-24 08:52:00 · 272 阅读 · 0 评论 -
php - zoj 1295
AC<?php // Run Time(ms) 10 // Run Memory(KB) 212 fscanf(STDIN,"%d",$num); while($num){ $strline = fgets(STDIN, 4096); echo strrev(tr原创 2011-07-08 15:33:48 · 391 阅读 · 0 评论