結果
問題 |
No.57 ミリオンダイス
|
ユーザー |
![]() |
提出日時 | 2016-05-09 01:27:46 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 202 bytes |
コンパイル時間 | 340 ms |
コンパイル使用メモリ | 20,864 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-14 06:09:26 |
合計ジャッジ時間 | 708 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 |
コンパイルメッセージ
main.c:9:1: warning: return type defaults to ‘int’ [-Wimplicit-int] 9 | main() { | ^~~~ main.c: In function ‘main’: main.c:10:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 10 | scanf("%td", &N); | ^~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> #include <stdlib.h> #include <stddef.h> #define int ptrdiff_t int N; main() { scanf("%td", &N); char *c = N%2 ? ".5" : ""; printf("%td%s\n", N*7/2, c); return 0; }