結果
| 問題 | No.423 ハムスター語初級(数詞) |
| コンテスト | |
| ユーザー |
bal4u
|
| 提出日時 | 2019-04-17 19:27:53 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 574 bytes |
| 記録 | |
| コンパイル時間 | 153 ms |
| コンパイル使用メモリ | 37,952 KB |
| 最終ジャッジ日時 | 2026-02-22 03:01:49 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 1 WA * 8 |
ソースコード
// yukicoder: No.423 ハムスター語初級(数詞)
// 2019.4.17 bal4u
#include <stdio.h>
#include <string.h>
#if 1
#define gc() getchar_unlocked()
#define pc(c) putchar_unlocked(c)
#else
#define gc() getchar()
#define pc(c) putchar(c)
#endif
int ins(char *s) // 文字列の入力 スペース以下の文字で入力終了
{
char *p = s;
do *s = gc();
while (*s++ > ' ');
*--s = 0;
return s - p;
}
void outs(char *s) { while (*s) pc(*s++); }
char n[60];
int main()
{
int w = ins(n);
if (w > 3) strcpy(n+ins(n), "ham");
outs(n), pc('\n');
return 0;
}
bal4u