摘要:
Codeforces 1. Swap Columns and Find a Path #define int long long void solve(){ int n; cin >> n; int a[2][n+2], cnt = 0; a[0][0] = a[1][0] = a[0][n+1] 阅读全文
摘要:
Codeforces Round 1006 (Div. 3) 1. New World, New Me, New Array int n, k, p; void solve(){ cin >> n >> k >> p; if((k>0 && n*p < k )|| (k<0 && -n*p > k) 阅读全文
摘要:
爆学数据库的一天 Codeforces 1. Shashlik Cooking void solve(){ int n, k; cin >> n >> k; int len = 2*k+1; if(n % len <= k && n%len != 0){ cout << n/len+1 << end 阅读全文