結果
| 問題 |
No.2906 Strange Online Judge
|
| コンテスト | |
| ユーザー |
cleantted
|
| 提出日時 | 2024-06-11 03:36:12 |
| 言語 | Text (cat 8.3) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 647 bytes |
| コンパイル時間 | 43 ms |
| コンパイル使用メモリ | 6,816 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-09 15:04:51 |
| 合計ジャッジ時間 | 2,382 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 15 |
ソースコード
$0=1
$1=1
$2=1
$8=0
while $0 <= 1000000001
$3=$0
$4=$1
$5=$2
$0=K*$4
$1=$0-$4
$2=$1
$0=$0+$3
$1=$1+$3
$2=$2+$5
$8=$8+1
end
$6=N-1
$7=2
$9=1
while $8 > 0
if $7 <= 1
if $6 < $0
$7=3
end
if $6 >= $0
$6=$6-$0
$9=$9+$0
$9=$9+$3
end
end
if $7 == 2
if $6 < $2
$7=5
end
if $6 >= $2
$6=$6-$2
$9=$9+$2
$9=$9+$5
end
end
if $7 <= 2
$7=$6/$1
$6=$6%$1
$1=$1+$4
$7=$7*$1
$9=$9+$7
$7=4
end
$7=$7-3
$8=$8-1
$0=$3
$1=$4
$2=$5
$4=$0-$1
$5=$4*K
$5=$0-$5
$6=$4*K
$6=$6-$4
$6=$0-$6
end
$9=$9+$6
return $9
cleantted