結果

問題 No.57 ミリオンダイス
コンテスト
ユーザー Unbakedbread
提出日時 2025-12-11 02:18:20
言語 C++23
(gcc 13.3.0 + boost 1.89.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 142 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 736 ms
コンパイル使用メモリ 76,420 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-12-11 02:18:22
合計ジャッジ時間 1,587 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |         scanf("%d", &N);
      |         ~~~~~^~~~~~~~~~

ソースコード

diff #
raw source code

#include <iostream>

int N;

int main(void) {
	scanf("%d", &N);
	printf("%d", 7 * N / 2);
	if(N & 1) printf(".5");
	printf("\n");
	return 0;
}
0