Codeforces Round #291 (Div. 2) Problem Solving report A. B .C.D. E,
A-Chewba certificate ca and NumberIf the value is greater than 4, the value is not greater than or equal to 4. Note that if the first digit is 9, the system does not invert the image.The Code is as follows:
#include
B-Han Solo and Lazer GunTraverse and mark the points in the same straight line. Pay attention to the accuracy.The Code is as follows:
#include
C-Watto and MechanicThis question is so miserable .. The map used dire
With the popularization of mobile devices, php websites will increasingly access mobile devices. Pages adapted to PCs are often unfriendly to mobile phone users. in some cases, we need to determine whether users are accessed by mobile phones. if they are mobile phones, they will jump to the specified mobile phone friendly page. Here we will introduce how to determine whether a user can access the website through a mobile phone.
The custom functions are as follows:
$ Agent = check_wap (); if ($
With the popularity of mobile devices, the site will also usher in more and more mobile device access. Adapt to the PC's page, many times the user is not friendly to the phone, then sometimes we need to determine whether users use mobile phone access, if it is mobile phone, jump to the designated mobile phone-friendly page. Here's how to tell if a user is using a mobile phone to access it.The custom functions are as follows:$agent = Check_wap (), if ($agent) {header (' location:http://www.nowama
With the popularization of mobile devices, more and more mobile devices will access websites. Pages adapted to PCs are often unfriendly to mobile phone users. In some cases, we need to determine whether users are accessed by mobile phones. If they are mobile phones, they will jump to the specified mobile phone friendly page. Here we will introduce how to determine whether a user can access the website through a mobile phone.
The custom functions are as follows:Copy codeThe Code is as follows:$ A
, its value//would now is in $matches [1] if (Isset ($matches [1])) {$si Ze = $matches [1]; } else {$size = ' unknown '; } $last _mb = round ($size/(1024*1024), 3), $last _kb = round ($size/1024,3); Return $last _kb. ' KB/'. $last _mb. ' MB ';}Check to see if your phone is logged in and jump$agent = Check_wap (), if ($agent) {header (' location:http://www.baidu.com '); exit;} If it is a cell phone, function Check_wap () {//Check whether it is a WAP proxy, high accuracy if (stristr ($_se
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.