結果
問題 | No.1903 Day1 |
ユーザー |
|
提出日時 | 2022-04-15 23:01:06 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 222 bytes |
コンパイル時間 | 856 ms |
コンパイル使用メモリ | 86,680 KB |
最終ジャッジ日時 | 2025-01-28 18:36:22 |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
ソースコード
#include <algorithm>#include <cmath>#include <iostream>#include <numeric>using namespace std;int main() {cin.tie(0)->sync_with_stdio(0);int n;cin >> n;cout << max(n - 6, 0) * 7 + min(n, 6);return 0;}