結果
問題 | No.809 かけ算 |
ユーザー |
![]() |
提出日時 | 2019-04-13 13:49:09 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 303 bytes |
コンパイル時間 | 126 ms |
コンパイル使用メモリ | 27,392 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-15 11:04:55 |
合計ジャッジ時間 | 693 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 6 |
コンパイルメッセージ
main.c: In function 'main': main.c:8:15: warning: implicit declaration of function 'putchar_unlocked' [-Wimplicit-function-declaration] 8 | #define pc(c) putchar_unlocked(c) | ^~~~~~~~~~~~~~~~ main.c:17:9: note: in expansion of macro 'pc' 17 | pc('1'), pc(' '); | ^~ main.c:7:14: warning: implicit declaration of function 'getchar_unlocked' [-Wimplicit-function-declaration] 7 | #define gc() getchar_unlocked() | ^~~~~~~~~~~~~~~~ main.c:18:21: note: in expansion of macro 'gc' 18 | while ((c = gc()) >= '0') pc(c); | ^~
ソースコード
// yukicoder: No.809 かけ算 // 2019.4.13 bal4u #include <stdio.h> #if 1 #define gc() getchar_unlocked() #define pc(c) putchar_unlocked(c) #else #define gc() getchar() #define pc(c) putchar(c) #endif int main() { int c; pc('1'), pc(' '); while ((c = gc()) >= '0') pc(c); pc('\n'); return 0; }