結果
問題 |
No.784 「,(カンマ)」
|
ユーザー |
|
提出日時 | 2019-04-12 22:50:43 |
言語 | PHP (843.2) |
結果 |
WA
|
実行時間 | - |
コード長 | 296 bytes |
コンパイル時間 | 4,207 ms |
コンパイル使用メモリ | 31,756 KB |
実行使用メモリ | 32,528 KB |
最終ジャッジ日時 | 2024-09-15 05:54:32 |
合計ジャッジ時間 | 5,373 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | AC * 2 WA * 8 |
コンパイルメッセージ
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=$length-1;$i>=0;$i--){ $out.=$word[$i]; if($i!=0 && $i%3==0){ $out.=','; } } echo $out; ?>