This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context | |
import android.media.AudioManager | |
import android.media.MediaPlayer | |
import android.net.Uri | |
import android.os.Bundle | |
import android.telecom.Call | |
import android.telecom.CallScreeningService | |
import android.telecom.TelecomManager | |
import androidx.appcompat.app.AppCompatActivity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$_fp = fopen ("php://stdin","r"); | |
$a = explode(' ', trim(fgets($_fp))); | |
$b = explode(' ', trim(fgets($_fp))); | |
array_walk($a, function(&$value){$value = intval($value);}); | |
array_walk($b, function(&$value){$value = intval($value);}); | |
$pointsA = 0; | |
$pointsB = 0; | |
for ($i = 0; $i < count($a); $i++) { | |
if ($a[$i] > $b[$i]) $pointsA++; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$_fp = fopen("php://stdin", "r"); | |
/* Enter your code here. Read input from STDIN. Print output to STDOUT */ | |
while($f = fgets($_fp)){ | |
$lines[] = $f; | |
} | |
$bugNum = intval($lines[0]); | |
$bugs = array_merge(explode(' ',$lines[1])); | |
// print_r($bugs); | |
$mylvl = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$_fp = fopen("php://stdin", "r"); | |
/* Enter your code here. Read input from STDIN. Print output to STDOUT */ | |
$text = $words = array(); | |
//collecting words as an array | |
while($in = fread($_fp,1024)){ | |
$text = array_merge($text, explode(' ', $in)); | |
} | |
$keywords = [ | |
'lol' => 1, |