제출 #498288

#제출 시각아이디문제언어결과실행 시간메모리
498288IOI_champion_in_1980Chessboard (IZhO18_chessboard)C++14
0 / 100
1 ms320 KiB
#include <bits/stdc++.h> #include <math.h> typedef long long ll; using namespace std; ll i, j, t, a, n, m, b, c, d, f, g; int x[100100]; void quickSort(int *array, int low, int high) { int i=low;int j=high;int pivot=array[(i + j)/2];int temp;while(i<=j){while(array[i]<pivot)i++;while(array[j]>pivot)j--; if(i<=j){temp=array[i];array[i]=array[j];array[j]=temp;i++;j--;}}if(j>low)quickSort(array,low,j);if(i<high)quickSort(array,i,high); } int binarySearch(int array[], int x, int low, int high) { while(low<=high){int mid=low+(high-low)/2;if(array[mid]==x)return mid; if(array[mid]<x)low=mid+1;else high=mid-1;}return -1; } int main() { ios::sync_with_stdio(0); cin.tie(0); cin>>n>>m; cout<<(n*n)/2<<endl; } /* */
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...