#include<stdio.h>#include<math.h>#include<windows.h>#include<tchar.h>floatf(float x,float y,float z){float a = x * x +9.0f/4.0f* y * y + z * z -1;return a * a * a - x * x * z * z * z -9.0f/80.0f* y * y * z * z * z;}floath(float x,float z){for(float y =1.0f; y >=0.0f; y -=0.001f){if(f(x, y, z)<=0.0f){return y;}}return0.0f;}intmain(){system("color 0c");HANDLE o =GetStdHandle(STD_OUTPUT_HANDLE);_TCHAR buffer[25][80]={_T(' ')};_TCHAR ramp[]=_T(".:-=+*#%@");for(float t =0.0f;; t +=0.1f){int sy =0;float s =sinf(t), a = s * s * s * s *0.2f;for(float z =1.3f; z >-1.2f; z -=0.1f){_TCHAR* p =&buffer[sy++][0];float tz = z *(1.2f- a);for(float x =-1.5f; x <1.5f; x +=0.05f){float tx = x *(1.2f+ a), v =f(tx,0.0f, tz);if(v <=0.0f){float y0 =h(tx, tz), ny =0.01f, nx =h(tx + ny, tz)- y0, nz =h(tx, tz + ny)- y0, nd =1.0f/sqrtf(nx * nx + ny * ny + nz * nz), d =(nx + ny - nz)* nd *0.5f+0.5f;*p++= ramp[(int)(d *5.0f)];}else{*p++=' ';}}}for(sy =0; sy <25; sy ++){COORD coord ={0, sy };SetConsoleCursorPosition(o, coord);WriteConsole(o, buffer[sy],79,NULL,0);}Sleep(33);}return0;}
codeforces round 919 dv2 C Partitioning the Array 大致题意,对于n约数i,我们把原数组分成份,并且每份中有i个元素,对于每个分组情况,如果存在一个数m使得数组中元素modm后使得每个部分的数组完全相同,如…
What is NoSQL
NoSQL database are no-tabular非數據表格 database that store data differently than relational tables 其數據的存儲方式與關係型表格不同
Database that provide a mechanism機制 for data storage retrieval 檢索 that is modelled in means other than …
info.plist
Appearance
Light 关闭黑暗模式
Bundle display name
设置app名称,默认为工程名
Location When In Use Usage Description
定位权限一共有3个key 1.Privacy - Location When In Use Usage Description 2.Privacy - Location Always and When In U…