結果
問題 | No.257 N言っちゃダメゲーム (3) |
ユーザー | tails |
提出日時 | 2015-07-31 22:27:17 |
言語 | Perl (5.40.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 115 bytes |
コンパイル時間 | 141 ms |
コンパイル使用メモリ | 6,940 KB |
実行使用メモリ | 43,300 KB |
最終ジャッジ日時 | 2024-07-16 20:52:57 |
合計ジャッジ時間 | 6,539 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 |
コンパイルメッセージ
Unquoted string "k" may clash with future reserved word at Main.pl line 5. Name "main::k" used only once: possible typo at Main.pl line 2. Main.pl syntax OK
ソースコード
$|=1; ($n,$k)=<>=~/\d+/g; $v=0; while(1){ while(($n-$v)%(k+1)){ ++$v; } print"$v\n"; $v=<>; last if $v>$n; }