汤姆和佩奇
汤姆和佩奇
全部文章
题解
归档
标签
去牛客网
登录
/
注册
汤姆和佩奇的博客
全部文章
/ 题解
(共9篇)
题解 | #JZ14 链表中倒数最后k个结点#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { // pu...
C++
C
2021-09-18
13
746
题解 | #三角形判断#
#include <stdio.h> int IsAngle(int a,int b,int c) { if(a+b > c && a+c > b && b+c > a ) &nb...
2021-09-02
0
452
题解 | #判断两个数的大小关系#
include <stdio.h> int main(){ int a,b; while((scanf("%d%d",&a,&b)) != EOF) { if(a == b) printf("%d...
2021-09-01
0
309
题解 | #判断是元音还是辅音#
include <stdio.h> int main(){ char ch; while((scanf("%c",&ch)) != EOF) { getchar(); if(ch == 'A' || ch == '...
2021-09-01
0
334
题解 | #竞选社长#
include <stdio.h> int main(){ char a; int count1 = 0; int count2 = 0; while((a=getchar()) != '0' && (a!=EOF)) { if...
2021-09-01
0
399
题解 | #ASCII码#
include <stdio.h> include <math.h> int main(){ int a; scanf("%d", &a); long long b = (3156*pow(10, 4)); long lon...
2021-08-29
19
629
题解 | #ASCII码#
include <stdio.h> int main(){ int a,b,t; scanf("%d%d",&a,&b); t=a/b; printf("%d %d",t,a-b*t); return ...
2021-08-28
0
366
题解 | #ASCII码#
include <stdio.h> int main(){ printf("%c%c%c%c%c%c%c%c%c%c%c%c",73,32,99,97,110,32,100,111,32,105,116,33); return 0;}不能加空格和逗号,真可以!
2021-08-28
2
504
题解 | #学生基本信息输入输出#
include <stdio.h> int main(){ int number; float score1,score2,score3; scanf("%d;%f,%f,%f",&number,&score1,&score2...
2021-08-28
0
410