結果
| 問題 |
No.570 3人兄弟(その1)
|
| コンテスト | |
| ユーザー |
yutakahan
|
| 提出日時 | 2017-12-07 16:03:47 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,040 bytes |
| コンパイル時間 | 784 ms |
| コンパイル使用メモリ | 107,116 KB |
| 実行使用メモリ | 17,664 KB |
| 最終ジャッジ日時 | 2024-11-29 05:05:00 |
| 合計ジャッジ時間 | 1,444 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 5 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
public class Hello{
public static void Main(){
int A = int.Parse(Console.ReadLine());
int B = int.Parse(Console.ReadLine());
int C = int.Parse(Console.ReadLine());
if(A > B && A > C){
Console.WriteLine(A);
if(B > C){
Console.WriteLine(B);
Console.WriteLine(C);
}else{
Console.WriteLine(C);
Console.WriteLine(B);
}
}else if(B > A && B > C){
Console.WriteLine(B);
if(A > C){
Console.WriteLine(A);
Console.WriteLine(C);
}else{
Console.WriteLine(C);
Console.WriteLine(A);
}
}else{
Console.WriteLine(C);
if(A > B){
Console.WriteLine(A);
Console.WriteLine(B);
}else{
Console.WriteLine(B);
Console.WriteLine(A);
}
}
}
}
yutakahan