結果
| 問題 |
No.784 「,(カンマ)」
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-12 22:52:36 |
| 言語 | PHP (843.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 300 bytes |
| コンパイル時間 | 203 ms |
| コンパイル使用メモリ | 32,148 KB |
| 実行使用メモリ | 32,532 KB |
| 最終ジャッジ日時 | 2024-09-15 05:59:00 |
| 合計ジャッジ時間 | 1,434 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 5 WA * 5 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php
$cnt=0;
$word=null;
$out=null;
fscanf(STDIN,"%d",$input);
$length=strlen($input);
for($i=0;$i<=$length-1;$i++){
$word[]=substr($input,$i,1);
}
//print_r($word);
for($i=0;$i<=$length-1;$i++){
if($i!=0 && $i%3==0){
$out.=',';
}
$out.=$word[$i];
}
echo $out;
?>