結果
問題 |
No.1057 素敵な日
|
ユーザー |
|
提出日時 | 2020-05-22 21:34:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 232 bytes |
コンパイル時間 | 127 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-05 15:49:45 |
合計ジャッジ時間 | 893 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 7 |
ソースコード
a,b=map(int,input().split()) # large is 1 a,b=max(a,b), min(a,b) tmp = "" for f1, f2 in zip(["1"]*a,["0"]*b): tmp += f1 + f2 tmp += "1"*(a-b) c = 0 for i in range(len(tmp)-1): if tmp[i:i+2] in {"10", "01"}: c += 1