結果
問題 | No.516 赤と青の風船 |
ユーザー |
|
提出日時 | 2020-12-20 17:26:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 35 ms / 2,000 ms |
コード長 | 268 bytes |
コンパイル時間 | 133 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-09-21 11:53:34 |
合計ジャッジ時間 | 1,031 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 |
ソースコード
S1 = input() S2 = input() S3 = input() answer = { 'RED': 0, 'BLUE': 0 } for S in [S1, S2, S3]: if S == 'RED': answer['RED'] += 1 else: answer['BLUE'] += 1 if answer['RED'] >= answer['BLUE']: print('RED') else: print('BLUE')