2024-06-02 22:04:54 +08:00
|
|
|
#include "sylib.h"
|
2024-06-14 13:22:02 +08:00
|
|
|
// ??? // ????
|
2024-04-14 22:20:29 +08:00
|
|
|
// ?????
|
2024-06-14 13:22:02 +08:00
|
|
|
/*
|
|
|
|
|
2024-04-14 22:20:29 +08:00
|
|
|
int main() {
|
2024-06-14 13:22:02 +08:00
|
|
|
int arr[100], i = 0, sum = 0;
|
|
|
|
while (getint()) {
|
|
|
|
arr[i] = getint();
|
2024-04-14 22:20:29 +08:00
|
|
|
i = i + 1;
|
2024-06-14 13:22:02 +08:00
|
|
|
}*/
|
|
|
|
int main() {
|
|
|
|
int arr[100], i = 0, sum = 0;
|
|
|
|
while (getint()) {
|
|
|
|
arr[i] = getint();
|
2024-04-14 22:20:29 +08:00
|
|
|
i = i + 1;
|
|
|
|
}
|
2024-06-14 13:22:02 +08:00
|
|
|
while (i) {
|
|
|
|
i = i - 1;
|
|
|
|
sum = sum + arr[i];
|
|
|
|
}
|
|
|
|
return sum % 79;
|
2024-05-19 17:04:50 +08:00
|
|
|
}
|