Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98864 | 吴梓玄 | 判断闰年I | C | Output Limit Exceeded | 12 MS | 200 KB | 288 | 2024-11-23 16:43:15 |
#include <stdio.h> int main() { int t; scanf("%d",&t); for(int i=0;i<t;i++){ int a; scanf("%d",&a); if (a%4==0 && a%100 != 0 || a%400==0){ printf("leap year\n"); } else{ printf("not leap year\n"); } } return 0; }