結果
| 問題 |
No.1903 Day1
|
| コンテスト | |
| ユーザー |
Today03
|
| 提出日時 | 2022-04-17 13:00:27 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 396 bytes |
| コンパイル時間 | 1,875 ms |
| コンパイル使用メモリ | 192,672 KB |
| 最終ジャッジ日時 | 2025-01-28 18:55:11 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 |
ソースコード
#include <bits/stdc++.h>
#define DEBUG(s, a) cout << s << " : " << a << '\n'
using namespace std;
void _main() {
int n;
cin >> n;
int sum = 0;
while (sum < n) {
sum++;
if (sum%7 == 0) n += 6;
}
cout << sum << '\n';
return;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
// cout << fixed << setprecision(15);
_main();
}
Today03