TA release HW1

This commit is contained in:
unlockable
2024-05-02 21:49:44 +08:00
parent 751989310c
commit 2bd8c009b5
17 changed files with 598 additions and 0 deletions

12
1/exp1/exp1_2.cpp Normal file
View File

@@ -0,0 +1,12 @@
#include "stdio.h"
int main() {
int i, j, temp;
scanf("%d", &i);
scanf("%d", &j);
i = -i;
if(j < 0) j = -j;
for(temp = 0; temp < j; ++temp) i += 1;
printf("%d",i);
return 0;
}