結果
問題 | No.57 ミリオンダイス |
ユーザー |
![]() |
提出日時 | 2015-12-14 19:45:52 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 276 bytes |
コンパイル時間 | 550 ms |
コンパイル使用メモリ | 63,816 KB |
実行使用メモリ | 6,816 KB |
最終ジャッジ日時 | 2024-11-14 06:01:33 |
合計ジャッジ時間 | 1,125 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 |
ソースコード
#include <iostream> #include <string> #include <fstream> #include <iomanip> using namespace std; int main() { int n; long long a = 0; cin >> n; for (int i = 0; i < n; i++) { a += 7; } if (n % 2)cout << a / 2 << ".5" << endl; else cout << a / 2 << endl; return 0; }