Search is not available for this dataset
name stringlengths 2 112 | description stringlengths 29 13k | source int64 1 7 | difficulty int64 0 25 | solution stringlengths 7 983k | language stringclasses 4
values |
|---|---|---|---|---|---|
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | hour = int(input())
print(24 - hour + 24) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | N = int(input())
K = 48-N
print(K)
| PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | n = int(input())
r = 24 - n
print(24+r)
| PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include<cstdio>
int n;
int main(){
scanf("%d",&n);
printf("%d\n",48-n);
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | M = int(input());
print(48-M); | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include <iostream>
int main() {
int m;
std::cin >> m;
std::cout << 48 - m << std::endl;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | a=int(input())
b=48-a
print(b) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #coding: utf-8
print(48 - int(input())) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | print("{}".format(24 - int(input()) + 24))
| PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | m = int(input())
print(2 * 24 - m) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int M = in.nextInt();
System.out.println(48 - M);
}
} | JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
System.out.println(48-a);
}
} | JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | N=input()
print(48-N)
| PYTHON |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan = new Scanner(System.in);
int m = scan.nextInt();
System.out.println(48 - m);
}
} | JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println(24 - n + 24);
}
}
| JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.Scanner;
class Main{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
System.out.println(48-a);
}
} | JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | time=int(input())
Ans=48-time
print(Ans) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | n = int(input())
d = 48-n
print(d) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #84
M = int(input())
print(48-M) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | # -*- coding: utf-8 -*-
# 整数の入力
a = int(raw_input())
b = 48 - a
# 出力
print b | PYTHON |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int M = sc.nextInt();
int x = 0;
if(1 <= M && M <= 23) {x = 24 + (24 - M);}
System.out.println(x);
}
} | JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | m = int(input())
print(48-m) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | s = input()
n = int(s)
print(48 - n) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int m = scan.nextInt();
System.out.println(48-m);
}
}
| JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | M = int(input())
print("{}".format(48-M)) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.*;
class Main {
public static void main(String[] args ) throws Exception {
Scanner sc = new Scanner(System.in);
int M = sc.nextInt();
System.out.println(48 - M);
}
} | JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a;
cin >> a;
cout << 24 * 2 - a;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | M=input()
M=int(M)
print(48-M)
| PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | m = int(raw_input())
print 48 - m | PYTHON |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | print(-int(input())+48) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n=scan.nextInt();
System.out.println(48-n);
}
}
| JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | x = input()
print(48-int(x)) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | # -*- coding: utf-8 -*-
n = input()
print(48-n) | PYTHON |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include <bits/stdc++.h>
using namespace std;
int main() {
int a;
cin>>a;
cout<<24-a+24;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner scanner = new Scanner(System.in)) {
int m = scanner.nextInt();
System.out.println(48 - m);
}
}
}
| JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | M = (int)(input())
print(48-M) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #84
m = int(input())
print(48-m) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | print(24+24-int(input())) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include <iostream>
using namespace std;
int main()
{
int m;
cin >> m;
cout << (24-m)+24;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include <cstdio>
int main(){
int m;
scanf("%d",&m);
printf("%d\n",48-m);
return 0;
}
| CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | m=input()
a=24-int(m)+24
print(a) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | print(24+abs(24-int(input())))
| PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include<iostream>
using namespace std;
int main(){
int a;cin>>a;
cout<<24+(24-a)<<endl;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include<iostream>
int main(){int N;std::cin>>N;std::cout<<48-N<<'\n';} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include <iostream>
using namespace std;
int main() {
int M;
cin>>M;
cout << (48-M)<<endl;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int M = sc.nextInt();
int h;
int x = 24 - M;
h = x + 24;
System.out.println(h);
sc.close();
}
}
| JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int m = sc.nextInt();
System.out.println(24 - m + 24);
}
}
| JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | t = int(input())
print(48 - t)
| PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int m=sc.nextInt();
System.out.println(48-m);
}
} | JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | ans = 48 - int(input())
print(ans) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | a = int(input())
a = 48 - a
print(a) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include<stdio.h>
int main(){
int m,n;
scanf("%d",&m);
n=48-m;
printf("%d\n",n);
return 0;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include <iostream>
using namespace std;
int main()
{
int a,b,c;
cin>>a;
b=24-a;
cout<<b+24;
}
| CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | T = int(input())
ans = (24-T)+24
print(ans) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include <iostream>
using namespace std;
int main() {
int A;
cin>> A;
cout << 48-A << endl;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | n=input()
print 48-n | PYTHON |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.*;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int m = 48 - sc.nextInt();
System.out.println(m);
}
} | JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include <bits/stdc++.h>
int M ;
int main()
{
scanf("%d",&M);
printf("%d\n",48-M);
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include <iostream>
using namespace std;
int main (){
int m;
cin >> m;
cout << 48 -m;
}
| CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include<iostream>
using namespace std;
int main(){
int tc;
cin >> tc; cout << (48 - tc) << "\n";
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | N = int(input())
print(24 + (24-N))
| PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | w=int(input())
print(48-w) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include<stdio.h>
int main(void)
{
int n;
scanf("%d",&n);
printf("%d\n",24-n+24);
return 0;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include <bits/stdc++.h>
using namespace std;
int main() {
int M;
cin>>M;
cout<<24*2-M;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int s = sc.nextInt();
System.out.println(NewYear(s));
}
public static int NewYear (int m){
return 48 - m;
}
}
| JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int M = sc.nextInt();
System.out.println(solve(M));
sc.close();
}
static int solve(int M) {
return 48 - M;
}
} | JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | time=int(input())
print((24-time)+24) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include <bits/stdc++.h>
using namespace std;
int main() {
int M;
cin >> M;
cout << 48 - M;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | //NewYear.java
import java.util.Scanner;
class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int m=sc.nextInt();
System.out.println((24-m)+24);
sc.close();
}
} | JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | h = int(input())
print(48-h) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = 24-a;
System.out.println(24 + b);
}
} | JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include <cstdio>
int main(){
int n;
scanf("%d",&n);
printf("%d",48 - n);
return 0;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | m = print(48 - int(input())) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include<bits/stdc++.h>
using namespace std;
int a;
int main(){
cin>>a;
cout<<48-a<<endl;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println(24 + (24 - n));
sc.close();
}
}
| JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.Scanner;
public class Main {
@SuppressWarnings("resource")
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
int m = scanner.nextInt();
System.out.println(24 - m + 24);
}
}
| JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include<bits/stdc++.h>
using namespace std;
int main()
{
int a;
cin>>a;
cout<<48-a;
return 0;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include<bits/stdc++.h>
int main(){int m;std::cin>>m;std::cout<<48-m;} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include <cstdio>
int main(){
int M;
scanf("%d", &M);
printf("%d\n", 48-M);
return 0;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.lang.*;
import java.util.*;
import java.io.*;
public class Main
{
public static void main(String[] args)
{
int m;
Scanner sc = new Scanner(System.in);
m = sc.nextInt();
System.out.println(48-m);
}
}
| JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | N = int(input())
print((24-N)+24) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include<iostream>
using namespace std;
int main(){
int a,b;
cin>>a;
cout<<24-a+24<<endl;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include <iostream>
using namespace std;
int main() {
int m;
cin >> m;
cout << 24*2 - m << endl;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
@SuppressWarnings("resource")
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
System.out.println(24 + (24 - x));
}
}
| JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int M = Integer.parseInt(sc.next());
M = 48 - M;
System.out.println(M);
sc.close();
}
} | JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | n = int(input());print(48-n) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | m = 24 - int(input())
print(m+24) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | a = int(input())
ans = (48-a)
print(ans) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include <bits/stdc++.h>
using namespace std;
int main() {
int A;
cin>>A;
cout<<24-A+24;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include <bits/stdc++.h>
using namespace std;
int m;
int main()
{
cin >> m;
cout << 48-m;
}
| CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int m = sc.nextInt();
sc.close();
int ans = 24;
ans += 24 - m;
System.out.println(ans);
}
}
| JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int N = scn.nextInt();
System.out.println(24 + 24-N);
}
}
| JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int M = scanner.nextInt();
int time = 24 + (24 - M);
System.out.println(time);
}
} | JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | m =int( input())
x = 24 - m + 24
print(x) | PYTHON3 |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.Scanner;
public class Main {
public static void main(String... nui) {
Scanner sc = new Scanner(System.in);
int m = sc.nextInt();
System.out.println(24 - m + 24);
}
}
| JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include <iostream>
using namespace std;
int main()
{
int M;
cin >> M;
cout << 48-M;
} | CPP |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.Scanner;
public class Main {
static int M;
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
M = scanner.nextInt();
scanner.close();
System.out.println(48 - M);
}
} | JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int i = in.nextInt();
System.out.println( (24 - i ) + 24);
}
} | JAVA |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | # vim: set fileencoding=utf-8:
def main():
M = input()
print(24 + (24 - M))
if __name__ == "__main__":
main()
| PYTHON |
p03473 AtCoder Beginner Contest 084 - New Year | How many hours do we have until New Year at M o'clock (24-hour notation) on 30th, December?
Constraints
* 1≤M≤23
* M is an integer.
Input
Input is given from Standard Input in the following format:
M
Output
If we have x hours until New Year at M o'clock on 30th, December, print x.
Examples
Input
21
Output
27
Input
12
Output
36 | 6 | 0 | #include<iostream>
using namespace std;
int main()
{
int a;
cin >> a;
a = 48-a;
printf("%d",a);
} | CPP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.