結果
| 問題 |
No.516 赤と青の風船
|
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2017-08-09 23:55:57 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 259 bytes |
| コンパイル時間 | 650 ms |
| コンパイル使用メモリ | 90,676 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-12 21:23:15 |
| 合計ジャッジ時間 | 1,342 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 |
ソースコード
import std.stdio;
import std.string;
void main() {
int read() {
auto s = readln.chomp;
return s == "RED" ? 1 : 0;
}
int red = read() + read() + read();
if (red >= 2)
writeln("RED");
else
writeln("BLUE");
}
norioc