Gửi bài giải
Điểm:
3,00 (OI)
Giới hạn thời gian:
1.0s
Giới hạn bộ nhớ:
1G
Input:
stdin
Output:
stdout
Dạng bài
Ngôn ngữ cho phép
C, C#, C++, Java, Javascript, Kotlin, Pascal, PyPy, Python, Scratch
Sample Input 1
5 2
7 3 4 2 6
Sample Output 1
5
Tạo trang chấm online
https://www.chuyentin.pro/2024/11/tao-trang-cham-online-rieng-cho-giao.html
Bình luận
Online Python - IDE, Editor, Compiler, Interpreter
def sum(a, b): return (a + b)
a = int(input('Enter 1st number: ')) b = int(input('Enter 2nd number: '))
print(f'Sum of {a} and {b} is {sum(a, b)}')
include <iostream>
include <vector>
include <algorithm>
include <cmath>
using namespace std;
int calculatedifference(const vector<int>& arrangement, int k, int ak) { int totaldifference = 0; int prev_height;
}
int main() { int n, k; cin >> n >> k; k--; // Adjust k to be 0-indexed
}
aio