結果
問題 | No.423 ハムスター語初級(数詞) |
ユーザー |
![]() |
提出日時 | 2017-04-11 23:34:23 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 225 bytes |
コンパイル時間 | 88 ms |
コンパイル使用メモリ | 27,648 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-18 09:08:58 |
合計ジャッジ時間 | 526 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 9 |
ソースコード
#include<stdio.h> #include<string.h> int main() { char str1[256]; char str2[]="ham"; scanf("%s",str1); if(strcmp(str1,str2)==0){ printf("ham\n"); }else{ strcat(str1,str2); printf("%s\n",str1); } return 0; }