結果
| 問題 |
No.756 チャンパーノウン定数 (1)
|
| コンテスト | |
| ユーザー |
🍮かんプリン
|
| 提出日時 | 2019-02-12 16:33:34 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 300 bytes |
| コンパイル時間 | 1,238 ms |
| コンパイル使用メモリ | 159,208 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-13 09:40:53 |
| 合計ジャッジ時間 | 2,177 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
#define ll long long int
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
int n;
cin >> n;
if (n/10==0) cout << n << endl;
else if (n%2==0) cout << (n-10)/20+1 << endl;
else cout << ((n-10)%20)/2 << endl;
return 0;
}
🍮かんプリン