結果

問題 No.2599 Summer Project
ユーザー nekotinekoti
提出日時 2024-01-12 21:55:12
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 423 bytes
コンパイル時間 128 ms
コンパイル使用メモリ 27,264 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-01-12 21:55:13
合計ジャッジ時間 675 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,676 KB
testcase_01 AC 1 ms
6,676 KB
testcase_02 AC 1 ms
6,676 KB
testcase_03 AC 1 ms
6,676 KB
testcase_04 AC 1 ms
6,676 KB
testcase_05 AC 1 ms
6,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<stdio.h>
int main(void)
{
  int scan;//scanf警告用
  char s[11],t[11];scan=scanf("%s%s",s,t);
       if(s[0]=='b'&&t[0]=='w')puts("shrinebell");
  else if(s[0]=='b'&&t[0]=='s')puts("watermelon");
  else if(s[0]=='w'&&t[0]=='b')puts("shrinebell");
  else if(s[0]=='w'&&t[0]=='s')puts("beachball");
  else if(s[0]=='s'&&t[0]=='b')puts("watermelon");
  else if(s[0]=='s'&&t[0]=='w')puts("beachball");
  return 0;
}
0