結果
| 問題 |
No.570 3人兄弟(その1)
|
| コンテスト | |
| ユーザー |
cb_4150
|
| 提出日時 | 2017-10-06 22:23:59 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 362 bytes |
| コンパイル時間 | 392 ms |
| コンパイル使用メモリ | 22,144 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-17 00:38:03 |
| 合計ジャッジ時間 | 997 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%d %d %d", &a, &b, &c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <cstdio>
int a, b, c;
int main(){
scanf("%d %d %d", &a, &b, &c);
if(a > b && b > c) printf("A\nB\nC\n");
if(a > c && c > b) printf("A\nC\nB\n");
if(b > a && a > c) printf("B\nA\nC\n");
if(b > c && c > a) printf("B\nC\nA\n");
if(c > a && a > b) printf("C\nA\nB\n");
if(c > b && b > a) printf("C\nB\nA\n");
return 0;
}
cb_4150