結果
| 問題 |
No.387 ハンコ
|
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2024-10-25 18:33:02 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 941 bytes |
| コンパイル時間 | 325 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 17,616 KB |
| 最終ジャッジ日時 | 2024-10-25 18:33:03 |
| 合計ジャッジ時間 | 1,746 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 9 |
ソースコード
t=int(input())
for i in range(t):
a, b, c=map(int, input().split())
if b==2:
if c%400==0 or (c%4==0 and c%100!=0):
if a<=28:
print(a+1,'/',b,'/',c,sep='')
else:
print(1,'/',b+1,'/',c,sep='')
else:
if a<=27:
print(a+1,'/',b,'/',c,sep='')
else:
print(1,'/',b+1,'/',c,sep='')
else:
if b in [1,3,5,7,8,10] :
if a<=30:
print(a+1,'/',b,'/',c,sep='')
else:
print(1,'/',b+1,'/',c,sep='')
else:
if b==12:
if a<=30:
print(a+1,'/',b,'/',c,sep='')
else:
print(1,'/',1,'/',c+1,sep='')
else:
if a<=29:
print(a+1,'/',b,'/',c,sep='')
else:
print(1,'/',b+1,'/',c,sep='')
vjudge1