結果
| 問題 |
No.446 ゆきこーだーの雨と雪 (1)
|
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2024-07-13 16:48:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 343 bytes |
| コンパイル時間 | 403 ms |
| コンパイル使用メモリ | 82,328 KB |
| 実行使用メモリ | 53,404 KB |
| 最終ジャッジ日時 | 2024-07-13 16:48:17 |
| 合計ジャッジ時間 | 2,453 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 11 WA * 2 |
ソースコード
def f(s):
if len(s) >= 2 and s[0] == "0":
print("NG")
exit()
def g(s):
for c in s:
if 0 <= ord(c) - ord("a") <= 25:
print("NG")
exit()
if 0 <= ord(c) - ord("A") <= 25:
print("NG")
exit()
A = input()
B = input()
f(A)
f(B)
g(A)
g(B)
print("OK")
rlangevin