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
#include<iostream> int main(){int n;std::cin>>n;return !(std::cout<<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
t = int(input()) print(24+24-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
print((24*2)-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
input = int(input()) print(48 - 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
import java.util.Scanner; class Main { private static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int m = sc.nextInt(); System.out.println(24 + 24 - 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 = 0; cin >> a; cout << 48 - 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
import java.util.*; import java.lang.*; 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
print("{}\n".format((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
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); System.out.print(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
y = int(input()) print(48-y)
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
#abc084 a m=int(input()) print(24+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
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<cstdio> int main() { int a; scanf("%d", &a); printf("%d\n", 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
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); 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; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int M = sc.nextInt(); System.out.println(24+ (24-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
#!/usr/bin/python # AtCoder Beginner Contest 084 # A: New Year # How many hours do we have until New Year at M o'clock on 30th, Dec.? import sys M = int(sys.stdin.readline()) x = 24 + 24 - M print(x)
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){ Scanner sc = new Scanner(System.in); int a = 48; int b; b = sc.nextInt(); System.out.println(a-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"bits/stdc++.h" using namespace std; int main(){ int x; cin>>x; cout<<48-x; }
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
S = input() a = 24 - S b = a + 24 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 scan = new Scanner(System.in); System.out.println(48 - scan.nextInt()); } }
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 scan = new Scanner(System.in); int A = scan.nextInt(); int B = 48 - A; System.out.println(B); scan.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
#include<stdio.h> int main() { int m; scanf("%d", &m); printf("%d", 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.util.*; public class Main{ public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); System.out.println(48-sc.nextInt()); } }
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 a; cin >> a; cout << 48-a << "\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
print(48-input())
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
T=int(input()) print(int(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
M = int(input()) x = 48 - M 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
M = int(input()) print(24 + ( 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
#include <iostream> 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> using namespace std; int m; int main () { 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.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int m = scan.nextInt(); scan.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
print str(48 - int(raw_input()))
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 M; cin >> M; cout << 2 * 24 - 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
#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
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int m = sc.nextInt(); int third = (24-m); System.out.println(third+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
X=int(input()) print(48-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; 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
i1 = int(input()) print(24-i1+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
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((48 - 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
#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
#include"bits/stdc++.h" 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); System.out.println((24 - sc.nextInt()) + 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
x = input() print(24 - int(x) + 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
temp=input() b=int(temp) print(48-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
#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
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int m = Integer.parseInt(sc.next()); 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
# coding:utf-8 M = int(raw_input()) print 24 + 24 - 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
import java.util.*; 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
#include<bits/stdc++.h> using namespace std; int main(){ int q; cin>>q; cout<<48-q; 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<cstdio> int main(){int n; 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
#include <iostream> using namespace std; int main(){ int a; cin >> a; cout << 24+(24-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
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = Integer.parseInt(sc.next()); System.out.println(24 - a + 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; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int M = Integer.parseInt(sc.next()); sc.close(); //31日の24時間を考慮 int ans = 24 + (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.*; import java.io.*; class Main { public static void main(String args[]) throws IOException { Scanner in = new Scanner(System.in); System.out.println(48 - in.nextInt()); } }
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 = 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
M = int(input()) print(str(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.Scanner; public class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int a = stdIn.nextInt(); int b = (24- a) + 24; System.out.println(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 <iostream> using namespace std; int main() { int m; cin>>m; cout<<(24-m)+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
A=int(input()) print(24-A+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
import java.util.Scanner; public class Main { public static void main (String[] args){ int n; Scanner sc = new Scanner (System.in); n=sc.nextInt(); n=48-n; System.out.println(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
t = int(input()) print((24-t)+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 <cstdio> int main() { int M; 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
a = int(input()) print((24-a)+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()) res = 48 -n print(res)
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 = input() H_PER_D = 24 print H_PER_D * 2 - 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
#include<iostream> int main(){ int a; std::cin>>a; std::cout<<48-a<<std::endl; 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.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdin=new Scanner(System.in); int m=stdin.nextInt(); int a=(24-m)+24; System.out.println(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
hour = int(input()) print(48-hour)
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) 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.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int m = sc.nextInt(); int result = (24 - m) + 24; System.out.println(result); } }
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
#abc084a 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
#include <iostream> using namespace std; int main(){ int h; cin >> h; cout << 48 - h << 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.*; import java.io.*; import java.lang.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int x = sc.nextInt(); System.out.println(48-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.Scanner; public 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
l = int(input()) print(48-l)
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) { // TODO 自動生成されたメソッド・スタブ Scanner stdin = new Scanner(System.in); System.out.println(48-(stdin.nextInt())); } }
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 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 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int M = Integer.parseInt(sc.next()); 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 <stdio.h> int main(void){ int x; scanf("%d",&x); printf("%d\n",48-x); 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=int(input()) aa=48-M print(aa)
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 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
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
print(24-int(raw_input()) + 24)
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(void){ int M; cin>>M; cout<<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
a=input() b=int(a) c=48-b print(c)
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 scanner = new Scanner(System.in); System.out.println(24 + (24- scanner.nextInt())); } }
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 n;cin>>n; cout<<(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
#include <cstdio> int m; int main () { 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
#include <iostream> int main() { int m; std::cin >> m; std::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
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int m; m = Integer.parseInt(sc.next()); int x = 48 - m; System.out.println(x); 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
print(24*2-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 in; cin >> in; cout << (48 - in); }
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 x; scanf("%d", &x); printf("%d", 48 - x); }
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 <stdio.h> int main(void){ int h; scanf("%d", &h); printf("%d\n", 48-h); 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<cstdio> int main(){ 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
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner stdIn = new Scanner(System.in); int M = stdIn.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> #include <math.h> using namespace std; int main(){ int a; cin>>a; cout <<48-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
x=input() x=int(x) print(48-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
#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
#include<cstdio> int M; int main(){ scanf("%d",&M); printf("%d",48-M); }
CPP