結果
問題 |
No.571 3人兄弟(その2)
|
ユーザー |
![]() |
提出日時 | 2023-06-19 14:59:13 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 460 bytes |
コンパイル時間 | 132 ms |
コンパイル使用メモリ | 28,928 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-27 03:21:38 |
合計ジャッジ時間 | 827 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 12 |
ソースコード
#include <stdio.h> int main() { int h1, w1, h2, w2, h3, w3; scanf("%d%d\n%d%d\n%d%d",&h1,&w1,&h2,&w2,&h3,&w3); h1 = h1 * 100 + (200-w1); h2 = h2 * 100 + (200-w2); h3 = h3 * 100 + (200-w3); printf("%d\n", h1); printf("%d\n", h2); printf("%d\n", h3); for (int i = 3;i--;) { if (h1 > h2 && h1 > h3) { puts("A"); h1 = -1; } if (h2 > h1 && h2 > h3) { puts("B"); h2 = -1; } if (h3 > h1 && h3 > h2) { puts("C"); h3 = -1; } } }