19 lines
470 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 『入门』(函数专题)今天星期几
[问题描述]
本题必需使用自定义函数完成
  编一程序实现: 由输入1980年以后的任意一个日期后计算机能打印出该日期是星期几。系统保证输入的日期肯定是合法绝不会出现类似-23年13月52日的情况。已知1980年1月1日是星期二。
[输入格式]
  年 月 日日期有3个整数组成中间用空格隔开。
[输出格式]
  一个整数值表示星期几。星期用1 2 3 4 5 6 7表示。若是星期日就输出7
[输入样例]
2009 1 2
[输出样例]
5