Author: 十七

acwing1224. 交换瓶子

题目题解暴力#include<iostream>using namespace std;const int N=10010;int n,a[N];int main(){ cin>>n; for(int i=1;i<=n;i++)scanf("%d&

十七 Published on 2022-11-22

acwing1237. 螺旋折线

题目如下图所示的螺旋折线经过平面上所有整点恰好一次。题解#include<iostream>using namespace std;typedef long long LL;LL distence=0;int main(){ int x,y; cin>>x>

十七 Published on 2022-11-17
十七 Published on 2022-11-03
Previous Next