Q1.
def f():
int a[N + 1][M + 1][K + 1]
sum = 0
for i = 1 to N:
for j = i to M:
for k = j to K:
sum += a[i][j]
print(sum)
<template> | |
<div class="n-select" :class="{'is-small' : small, opened: list}" ref="nSelect"> | |
<div class="over-con"> | |
<div class="search-container" ref="searchContainer" @click.stop="openAndSearch"> | |
<template v-if="multiple"> | |
<div class="selected-item" v-for="val in selected" :key="trackBy ? val[trackBy] : val" > | |
<span class="text">{{label ? val[label] : val}}</span> | |
<button class="close" @click="removeItem(val)">×</button> | |
</div> | |
</template> |
class ErrorBag { | |
constructor(errors = {}) { | |
this.setErrors(errors); | |
} | |
hasErrors() { | |
return !!this.keys.length; | |
} | |
get keys() { |
Q1.
def f():
int a[N + 1][M + 1][K + 1]
sum = 0
for i = 1 to N:
for j = i to M:
for k = j to K:
sum += a[i][j]
print(sum)