Submission #7716379
Source Code Expand
#include<bits/stdc++.h> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define YES cout<<"YES"<<endl #define NO cout<<"NO"<<endl #define Yes cout<<"Yes"<<endl #define No cout<<"No"<<endl #define ANS cout << ans << endl #define all(a) a.begin(),a.end() #define SORT(a) sort(all(a)) #define REVERSE(a) reverse(all(a)) #define int long long #define FOR(i, m, n) for(int i = m;i < n;i++) #define VIin(a) for(int i=0; i<a.size(); i++) cin >> a[i] typedef vector<int> VI; typedef vector<VI> VVI; const int MOD=1e9+7; const long long INF = 1LL << 60; /*最大公約数*/int gcd(int x, int y) { return y ? gcd(y,x%y) : x;} /*最小公倍数*/int LCM(int a, int b) { int g = gcd(a, b); return a / g * b; } //---------------------------------------------- signed main(){ ios::sync_with_stdio(false); cin.tie(nullptr); cout<<fixed<<setprecision(15); int a,b,c; cin >> a >> b >> c; cout << (c / (double)a) * b << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - SDカード |
User | ruhu |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 1002 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_example_01.txt, 00_example_02.txt |
All | 00_example_01.txt, 00_example_02.txt, 10_rand_01.txt, 10_rand_02.txt, 10_rand_03.txt, 10_rand_04.txt, 10_rand_05.txt, 10_rand_06.txt, 20_hand_01.txt, 20_hand_02.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_example_01.txt | AC | 1 ms | 256 KB |
00_example_02.txt | AC | 1 ms | 256 KB |
10_rand_01.txt | AC | 1 ms | 256 KB |
10_rand_02.txt | AC | 1 ms | 256 KB |
10_rand_03.txt | AC | 1 ms | 256 KB |
10_rand_04.txt | AC | 1 ms | 256 KB |
10_rand_05.txt | AC | 1 ms | 256 KB |
10_rand_06.txt | AC | 1 ms | 256 KB |
20_hand_01.txt | AC | 1 ms | 256 KB |
20_hand_02.txt | AC | 1 ms | 256 KB |