結果
問題 |
No.441 和か積
|
ユーザー |
![]() |
提出日時 | 2025-10-05 17:36:58 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 492 bytes |
コンパイル時間 | 244 ms |
コンパイル使用メモリ | 34,240 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-10-05 17:37:00 |
合計ジャッジ時間 | 1,448 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 30 |
ソースコード
#include <stdio.h> #include <string.h> int main(void) { char a[201], b[201]; scanf("%s", a); /*printf("%s\n", a);*/ scanf("%s", b); /*printf("%s\n",b);*/ if(strcmp(a, "0") == 0 && strcmp(b, "0") == 0){ printf("E\n"); } else if(strcmp(a, "0") == 0 || strcmp(b, "0") == 0){ printf("S\n"); } else if(strcmp(a, "1") == 0 || strcmp(b, "1") == 0){ printf("S\n"); } else if(strcmp(a, "2") == 0 && strcmp(b, "2") == 0){ printf("E"); } else{ printf("P\n"); } return 0; }