結果
| 問題 |
No.1903 Day1
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-19 20:39:25 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 341 bytes |
| コンパイル時間 | 424 ms |
| コンパイル使用メモリ | 66,880 KB |
| 最終ジャッジ日時 | 2025-02-20 07:47:49 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 |
ソースコード
#include <iostream>
#define ll long long
using namespace std;
int main(){
int n;
cin >> n;
int days = 0;
int problems = n;
while (problems > 0) {
days++;
if (days % 7 == 0) {
problems += 6;
}
problems--;
}
cout << days << endl;
return 0;
}