結果
| 問題 | No.1903 Day1 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-19 20:39:25 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 341 bytes |
| 記録 | |
| コンパイル時間 | 384 ms |
| コンパイル使用メモリ | 79,232 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-04 03:30:16 |
| 合計ジャッジ時間 | 1,260 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}