結果
問題 | No.1903 Day1 |
ユーザー |
![]() |
提出日時 | 2022-04-15 21:22:17 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 264 bytes |
コンパイル時間 | 1,787 ms |
コンパイル使用メモリ | 192,476 KB |
最終ジャッジ日時 | 2025-01-28 17:49:42 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int cur = 1; int ans = 0; while (n) { if (cur % 7 == 0) { n += 6; } n--; ans++; cur++; } cout << ans << "\n"; }