11 条题解
-
-7
#include <iostream> #include <algorithm> #include <cstdio> #include <cstring> #include <string> #include <iomanip> #include <cmath> #include <queue> #include <map> #include <stack> #include <vector> using namespace std; #define long long LL const int N = 1e6+6; const int INF = 0x3f3f3f3f; int main(){ int n; cin >> n; cout << n / 3600 << endl; cout << (n - 3600 * (n / 3600)) / 60 << endl; cout << n % 60; return 0; }
-
-7
#include <queue> #include <math.h> #include <stack> #include <stdio.h> #include <iostream> #include <vector> #include <iomanip> #include <string.h> #include <algorithm> using namespace std; #define LL long long const int N = 1e5 + 10; const int INF = 0x3f3f3f3f; int main() { int n; cin >> n; int a , b , c; a = n / 3600; cout << a <<endl; b = (n / 60)-(60 * a); cout << b <<endl; c = n-(60 * b)-(3600 * a); cout << c <<endl; }
- 1
信息
- ID
- 836
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 4
- 标签
- 递交数
- 887
- 已通过
- 425
- 上传者