250303
This commit is contained in:
parent
9b502ee90c
commit
87611d8794
2
.clangd
Normal file
2
.clangd
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
CompileFlags:
|
||||||
|
Add: [-IC:/ProgramData/mingw64/mingw64/include, -IC:/ProgramData/mingw64/mingw64/x86_64-w64-mingw32/include]
|
18
.vscode/c_cpp_properties.json
vendored
18
.vscode/c_cpp_properties.json
vendored
@ -3,18 +3,18 @@
|
|||||||
{
|
{
|
||||||
"name": "Win32",
|
"name": "Win32",
|
||||||
"includePath": [
|
"includePath": [
|
||||||
"${workspaceFolder}/**",
|
// "${workspaceFolder}/**",
|
||||||
"C:/mingw-w64/include",
|
"C:/ProgramData/mingw64/mingw64/include",
|
||||||
"C:/mingw-w64/x86_64-w64-mingw32/include"
|
"C:/ProgramData/mingw64/mingw64/x86_64-w64-mingw32/include"
|
||||||
],
|
],
|
||||||
"defines": [],
|
"defines": [],
|
||||||
"compilerPath": "gcc",
|
"compilerPath": "gcc",
|
||||||
"intelliSenseMode": "clang-x64",
|
"intelliSenseMode": "windows-gcc-x64",
|
||||||
"cStandard": "c11",
|
"cStandard": "c99",
|
||||||
"cppStandard": "c++17",
|
"cppStandard": "c++17"
|
||||||
"browse": {
|
// "browse": {
|
||||||
"limitSymbolsToIncludedHeaders": true
|
// "limitSymbolsToIncludedHeaders": true
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"version": 4
|
"version": 4
|
||||||
|
8
0303/0.c
Normal file
8
0303/0.c
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
int a, b;
|
||||||
|
scanf("%d %d", &a, &b);
|
||||||
|
printf("%d", a + b);
|
||||||
|
return 0;
|
||||||
|
}
|
7
0303/1.c
Normal file
7
0303/1.c
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
int a, b;
|
||||||
|
scanf("%d %d", &a, &b);
|
||||||
|
printf("%d", b / a + 1);
|
||||||
|
}
|
7
0303/2.c
Normal file
7
0303/2.c
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
float r;
|
||||||
|
scanf("%f", &r);
|
||||||
|
printf("%.2f\n", 3.14 * r * r);
|
||||||
|
}
|
7
0303/3.c
Normal file
7
0303/3.c
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
int a, b;
|
||||||
|
scanf("%d %d", &a, &b);
|
||||||
|
printf("%.2f\n", (float)a / b);
|
||||||
|
}
|
8
0303/4.c
Normal file
8
0303/4.c
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
int n;
|
||||||
|
scanf("%d", &n);
|
||||||
|
printf("%d", n * 10);
|
||||||
|
return 0;
|
||||||
|
}
|
8
0303/5.c
Normal file
8
0303/5.c
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
int n, m;
|
||||||
|
scanf("%d %d", &n, &m);
|
||||||
|
printf("%d", n % m == 0 ? n / m : n / m + 1);
|
||||||
|
return 0;
|
||||||
|
}
|
9
0303/6.c
Normal file
9
0303/6.c
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
char num[] = {getchar(), getchar(), getchar()};
|
||||||
|
putchar(num[2]);
|
||||||
|
putchar(num[1]);
|
||||||
|
putchar(num[0]);
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user