Petitverse
ゲストさん (
ログイン
)
ログイン
コミュニティ内検索
コミュニティ一覧
Petitverse ご利用ガイド
Petitverse からのおしらせ
プチコン 非公式コミュニティ
プレイ日記
はる
◆75Vh4SY8TdKS
2018/4/8 16:19
プログラムどうなるかクイズが流行っているというほどでもないが、
面白そうだったので便乗。
プログラムはコメントで。
エラーになるかならないかをコメントで予想して下さい。
コメント
moi
2018/4/8 16:30 ネタバレ
◆hL/XpFV8MD2F
なる
ABS ???がだめ
このコメントはネタバレを含んでいます。
このコメントをひらく
はる
2018/4/8 16:40 ネタバレ
◆75Vh4SY8TdKS
ヒント
INCはこのプログラム内にはありません。
かなりいやらしいです。
このコメントはネタバレを含んでいます。
このコメントをひらく
はる
2018/4/8 16:40
◆75Vh4SY8TdKS
↑はヒントです。
結構大ヒントです。
こういち
2018/4/8 16:43 ネタバレ
◆ou0jbJnEJ0Kb
ならない。
理由
・戻り値が1つの関数はOUTで書いてもOK
・関数や命令名と変数名は被ってもOK
このコメントはネタバレを含んでいます。
このコメントをひらく
はる
2018/4/8 16:46
◆75Vh4SY8TdKS
まだ続けます。
投稿してから30分程度なのに2人もコメントがあって嬉しいです。
とすけ
2018/4/8 18:16 ネタバレ
◆IUAdB4KpZwSR
INCは予約語なのでエラー
プチコンの文法に興味を持つ人が増えてきてうれしいですね
このコメントはネタバレを含んでいます。
このコメントをひらく
キルル2
2018/4/8 22:10 ネタバレ
◆rGE712Ruejv7
abs関数が普通の命令の形で書かれてるからsyntax errorが出る
このコメントはネタバレを含んでいます。
このコメントをひらく
はる
2018/4/8 22:35
◆75Vh4SY8TdKS
色々な意見が出てきて面白いです。
うょリウム(元 SPDX)
2018/4/9 8:12
◆hJ0Srd29fS.I
WIDTH OUT INCのところが 式の中ではOUTできないからアウト…かな?
はる
2018/4/9 12:24
◆75Vh4SY8TdKS
その考え方は予想していませんでした。
WIDTHなどを変数とみるか命令とみるかで変わってきそうです。
うょリウム(元 SPDX)
2018/4/10 7:37
◆hJ0Srd29fS.I
?ABS(WAIT-RAD(HARDWARE)*WIDTH)ならセーフかな?
そもそも計算式を代入でもPRINTでもなく直接書き込むのがアウトですが…。
あれ?そういう意味じゃなかったかな?
はる
2018/4/10 12:14
◆75Vh4SY8TdKS
?ABS(WAIT-RAD(HARDWARE)*WIDTH)
はエラーです。
>あれ?そういう意味じゃなかったかな?
そういう意味であっています。
はる
2018/4/11 20:25
◆75Vh4SY8TdKS
エラーになりません。
INCではなくlNCなのに注意です。
こういちさんのみ正解です。
こういち
2018/4/11 20:36
◆ou0jbJnEJ0Kb
(運良く正解したもののIがlだったことに気付かなかったなんて言えない。今見比べてみると若干幅が違う気がする。)
うょリウム(元 SPDX)
2018/4/11 20:48
◆hJ0Srd29fS.I
Al(アルミニウム)の元素記号は?
A君『エーアイ!』
B君「え?人工知能?」
教官「エーエルだろがぁぁぁ!!」
ってやつですね?
うょリウム(元 SPDX)
2018/4/11 20:55
◆hJ0Srd29fS.I
と、いうか
「ABS A OUT B」 と書くと、
「B=ABS(A)」と同じ効果だったんですね。
え?まさかそれは全員知ってた的な?
そしてこの書式に
有用な使い道はありますか?
はる
2018/4/11 20:58
◆75Vh4SY8TdKS
IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII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IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
はる
2018/4/11 20:58
◆75Vh4SY8TdKS
llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
はる
2018/4/11 20:59
◆75Vh4SY8TdKS
こういちさんが幅が違うとおっしゃていたので、
テストしてみました。
どちらも2000文字です。
本当に幅が違いますね。
はる
2018/4/11 21:31
◆75Vh4SY8TdKS
プチコンではこうなります。
本文は3号,BIGともに256文字、
キャプションは3号は72文字、BIGは107文字です。
1
2
コメントを書く
この投稿にはコメントできません。
-
WEB PATIO
-