結果
| 問題 | No.423 ハムスター語初級(数詞) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-02 17:09:22 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 166 bytes |
| 記録 | |
| コンパイル時間 | 215 ms |
| コンパイル使用メモリ | 38,176 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-05-15 16:50:21 |
| 合計ジャッジ時間 | 918 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 9 |
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
3 | main()
| ^~~~
ソースコード
#include<stdio.h>
#include<string.h>
main()
{
char s[50];
scanf("%s",s);
if(strlen(s)==3){
printf("hum\n");
return 0;
}
else
{
printf("%shum\n",s);
return 0;
}
}