navigation switch
Home
Contests
Notification
Clarification
Problems
Ranklist
Status
HackStatus
Problem 1003
calculation order
uwi
| 2015-09-19 19:48:18
Author
if 'a' is a type, is a*a*a valid? if so, how is calculation order?
admin
| 2015-09-19 19:50:30
# 1
invalid. a and b must be variables when we are dealing with '*'. So when we dealing a*a, we found a is a type but not a variable.
uwi
| 2015-09-19 19:50:37
# 2
oh sorry "we should work from left to right"
uwi
| 2015-09-19 19:51:05
# 3
oh, sorry. Please forget
admin
| 2015-09-19 19:51:08
# 4
calculation order is left to right.
admin
| 2015-09-19 19:51:57
# 5
there's no definition for type * typeŁ¬so it's invaild. if a is a variable,then it is valid, and calculated like:((a*a)*a)(barcket first)
Title
Content