結果
問題 | No.1903 Day1 |
ユーザー |
![]() |
提出日時 | 2022-04-16 17:38:06 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 1,000 ms |
コード長 | 376 bytes |
コンパイル時間 | 326 ms |
コンパイル使用メモリ | 40,772 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-25 21:31:40 |
合計ジャッジ時間 | 948 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 |
ソースコード
/* -*- coding: utf-8 -*-** 1903.cc: No.1903 Day1 - yukicoder*/#include<cstdio>#include<algorithm>using namespace std;/* constant *//* typedef *//* global variables *//* subroutines *//* main */int main() {// x=7q+r (r<7) -> n+6q=7q+r -> n=q+rint n;scanf("%d", &n);int r = min(n, 6), q = n - r;printf("%d\n", 7 * q + r);return 0;}