結果
問題 |
No.516 赤と青の風船
|
ユーザー |
![]() |
提出日時 | 2017-05-28 21:46:18 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 200 bytes |
コンパイル時間 | 167 ms |
コンパイル使用メモリ | 22,400 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-21 15:22:03 |
合計ジャッジ時間 | 553 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 4 WA * 2 |
ソースコード
#include<cstdio> int main(void) { char s[3][10]; while(scanf("%s%s%s", s[0], s[1], s[2])==3) { if(s[0]==s[1] || s[0]==s[2]) printf("%s\n", s[0]); else printf("%s\n", s[1]); } return 0; }