結果
問題 |
No.1903 Day1
|
ユーザー |
|
提出日時 | 2022-12-16 19:08:45 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 243 bytes |
コンパイル時間 | 671 ms |
コンパイル使用メモリ | 53,720 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-16 00:05:35 |
合計ジャッジ時間 | 1,487 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
ソースコード
#include <iostream> using namespace std; int main() { int n; cin >> n; int cnt = 0; while (n) { ++cnt; if (cnt % 7 == 0) { n += 6; } --n; } cout << cnt << endl; }